<fix>: fix the URL bug.

This commit is contained in:
YiXuan Ding 2024-10-27 17:25:43 +08:00 committed by ccmywish
parent 8131588426
commit a21af7a385

View File

@ -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."
} }