55# Contributors : Aoran Zeng <ccmywish@qq.com>
66# |
77# Created On : <2024-10-26>
8- # Last Modified : <2024-12-07 >
8+ # Last Modified : <2024-12-08 >
99#
1010# chsrc installer for Windows
1111# ---------------------------------------------------------------
@@ -127,7 +127,7 @@ function Set_URL {
127127 output_error "Unsupported architecture '$cpuArchitecture'. Only x86 or x64 architectures are supported."
128128 }
129129 }
130- output_info "My CPU architecture: $global:arch"
130+ output_info "Get my CPU architecture: $global:arch"
131131
132132 # Set URL
133133 if ($version -eq "pre") {
@@ -139,7 +139,7 @@ function Set_URL {
139139 "v" + "${global:version}/chsrc-${global:arch}-windows.exe"
140140 }
141141
142- output_info "Set downLoad URL: $global:url"
142+ output_info "Set download URL: $global:url"
143143}
144144
145145function Install {
@@ -161,10 +161,10 @@ function Install {
161161
162162 try {
163163 $outfile = "\${binary_name}.exe"
164- output_info "Downloading $binary_name ($global:arch architecture, $ platform platform, version $global:version) to $global:install_dir ... "
164+ output_info "Downloading $binary_name (architecture: $global:arch, platform: $ platform, version: $global:version) to $global:install_dir"
165165 Invoke-WebRequest -OutFile ($global:install_dir + $outfile) -Uri $global:url -ErrorAction Stop
166166 # 🎉 这个符号会变成 ??? 不要添加
167- output_info "Installation completed, destination: " ($global:install_dir + $outfile)
167+ output_info "Installation completed, destination:" ($global:install_dir + $outfile)
168168 } catch {
169169 output_error "Unable to download $binary_name. Error: $_"
170170 }
0 commit comments