From a21af7a3850e4d6014722cb90683ff62d02b7094 Mon Sep 17 00:00:00 2001 From: YiXuan Ding <1328032567@qq.com> Date: Sun, 27 Oct 2024 17:25:43 +0800 Subject: [PATCH] : fix the URL bug. --- tool/install.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tool/install.ps1 b/tool/install.ps1 index 637c595..9a440d9 100644 --- a/tool/install.ps1 +++ b/tool/install.ps1 @@ -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." }