Skip to content

Commit

Permalink
upx 压缩体积
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbug committed May 21, 2021
1 parent 822ae3f commit 9250560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion releases.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-w -s' -gcflags '-N -l' -o bin/biu-cli_linux_amd64 cmd/biu-cli.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags '-w -s' -gcflags '-N -l' -o bin/biu-cli_win_amd64.exe cmd/biu-cli.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags '-w -s' -gcflags '-N -l' -o bin/biu-cli_darwin_amd64 cmd/biu-cli.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags '-w -s' -gcflags '-N -l' -o bin/biu-cli_darwin_amd64 cmd/biu-cli.go
upx bin/*

0 comments on commit 9250560

Please sign in to comment.