Skip to content

Commit

Permalink
optimize build
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Oct 4, 2024
1 parent 56ef885 commit 6ad1978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ main() {
log_info "building v${VERSION} for ${platform}"

env GOOS="${os}" GOARCH="${arch}" \
go build -o "build/${filename}" -ldflags "-X ${PACKAGE}.Version=${VERSION}"
go build -o "build/${filename}" -ldflags "-s -w -X ${PACKAGE}.Version=${VERSION}"

if [ $? -eq 0 ]
then
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ main() {
log_info "dogfooding v${VERSION}"

# Always dogfood the latest build
go build -o "$BIN" -ldflags "-X ${PACKAGE}.Version=${VERSION}"
go build -o "$BIN" -ldflags "-s -w -X ${PACKAGE}.Version=${VERSION}"

if [ $? -eq 0 ]
then
Expand Down

0 comments on commit 6ad1978

Please sign in to comment.