Skip to content

Commit

Permalink
Add extension for installer.ps1
Browse files Browse the repository at this point in the history
[GitHub #98]
  • Loading branch information
ccmywish committed Oct 28, 2024
1 parent 7609333 commit 152ea43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tool/installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ function Install {
}

try {
$outfile = "\${binary_name}.exe"
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
output_info "🎉 Installation completed, destination dir: $global:install_dir"
Invoke-WebRequest -OutFile ($global:install_dir + $outfile) -Uri $global:url -ErrorAction Stop
output_info "🎉 Installation completed, destination: " ($global:install_dir + $outfile)
} catch {
output_error "Unable to download $binary_name. Error: $_"
}
Expand Down

0 comments on commit 152ea43

Please sign in to comment.