mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-08 11:14:03 +08:00
parent
76093338f4
commit
152ea4314f
@ -160,9 +160,10 @@ function Install {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
$outfile = "\${binary_name}.exe"
|
||||||
output_info "Downloading $binary_name ($global:arch architecture, $platform platform, version $global:version) to $global:install_dir ..."
|
output_info "Downloading $binary_name ($global:arch architecture, $platform platform, version $global:version) to $global:install_dir ..."
|
||||||
Invoke-WebRequest -OutFile ($global:install_dir + "\$binary_name") -Uri $global:url -ErrorAction Stop
|
Invoke-WebRequest -OutFile ($global:install_dir + $outfile) -Uri $global:url -ErrorAction Stop
|
||||||
output_info "🎉 Installation completed, destination dir: $global:install_dir"
|
output_info "🎉 Installation completed, destination: " ($global:install_dir + $outfile)
|
||||||
} catch {
|
} catch {
|
||||||
output_error "Unable to download $binary_name. Error: $_"
|
output_error "Unable to download $binary_name. Error: $_"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user