mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-23 03:03:02 +08:00
<fix>: fix the URL bug.
This commit is contained in:
parent
8131588426
commit
a21af7a385
|
@ -128,8 +128,14 @@ function Get_Url {
|
||||||
Write-Host "CPU Architecture: $global:arch"
|
Write-Host "CPU Architecture: $global:arch"
|
||||||
|
|
||||||
# Set URL
|
# Set URL
|
||||||
$global:url = "https://gitee.com/RubyMetric/chsrc/releases/download/" + `
|
if ($version -eq "pre") {
|
||||||
"v" + "${global:version}/chsrc-${global:arch}-windows.exe"
|
$global:url = "https://gitee.com/RubyMetric/chsrc/releases/download/" + `
|
||||||
|
"${global:version}/chsrc-${global:arch}-windows.exe"
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$global:url = "https://gitee.com/RubyMetric/chsrc/releases/download/" + `
|
||||||
|
"v" + "${global:version}/chsrc-${global:arch}-windows.exe"
|
||||||
|
}
|
||||||
|
|
||||||
Write-Host "DownLoad URL: $global:url."
|
Write-Host "DownLoad URL: $global:url."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user