Skip to content

Commit

Permalink
Optimize binary
Browse files Browse the repository at this point in the history
  • Loading branch information
hollowness-inside committed Nov 26, 2024
1 parent 8083565 commit 745c9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ foreach ($Platform in $Platforms) {
$env:GOOS = $GOOS
$env:GOARCH = $GOARCH
$CurrentDir = (Get-Location).Path
& go build -C $CurrentDir -o (Join-Path $OutputDir $OutputName) $MainPath
& go build -C $CurrentDir -o (Join-Path $OutputDir $OutputName) -ldflags "-s -X main.version=$Version" $MainPath

if ($LASTEXITCODE -ne 0) {
Write-Error "Build failed for $GOOS/$GOARCH"
Expand Down

0 comments on commit 745c9bf

Please sign in to comment.