mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 23:54:00 +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"
|
||||
|
||||
# Set URL
|
||||
$global:url = "https://gitee.com/RubyMetric/chsrc/releases/download/" + `
|
||||
"v" + "${global:version}/chsrc-${global:arch}-windows.exe"
|
||||
if ($version -eq "pre") {
|
||||
$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."
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user