Skip to content

Commit

Permalink
Add minimized build
Browse files Browse the repository at this point in the history
  • Loading branch information
fishi0x01 committed Apr 11, 2024
1 parent 14c7da7 commit c836cef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## master - unreleased

ENHANCEMENTS:

* shrink binary size ([#115](https://github.com/fishi0x01/vsh/pull/115)) - Thank you [kindy](https://github.com/kindy))

## v0.12.2 (February, 21, 2023)

ENHANCEMENTS:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ compile-releases: clean ## Compile vsh binaries for multiple platforms and archi
for GOARCH in $(SUPPORTED_ARCHS); do \
GOOS=$$GOOS GOARCH=$$GOARCH \
go build -mod vendor -ldflags "-X main.vshVersion=$(VERSION)" -o build/${APP_NAME}_$${GOOS}_$${GOARCH}; \
go build -mod vendor -tags 'notokenhelper' -trimpath -ldflags "-s -w -X main.vshVersion=$(VERSION)" -o build/${APP_NAME}_notokenhelper_$${GOOS}_$${GOARCH}; \
done \
done
cd build/ && sha256sum * > SHA256SUM
Expand Down

0 comments on commit c836cef

Please sign in to comment.