Skip to content

Commit

Permalink
Strip and remove debugging symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Feb 8, 2022
1 parent 97ad2f7 commit 5245473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
VERSION=$(shell git describe --tags)

build:
go build -ldflags "-X github.com/lemonade-command/lemonade/lemon.Version=$(VERSION)"
go build -ldflags "-s -w -X github.com/lemonade-command/lemonade/lemon.Version=$(VERSION)"

install:
go install -ldflags "-X github.com/lemonade-command/lemonade/lemon.Version=$(VERSION)"
go install -ldflags "-s -w -X github.com/lemonade-command/lemonade/lemon.Version=$(VERSION)"

release:
gox --arch 'amd64 386' --os 'windows linux darwin' --output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}" -ldflags "-X github.com/lemonade-command/lemonade/lemon.Version=$(VERSION)"
gox --arch 'amd64 386' --os 'windows linux darwin' --output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}" -ldflags "-s -w -X github.com/lemonade-command/lemonade/lemon.Version=$(VERSION)"
zip pkg/lemonade_windows_386.zip dist/lemonade_windows_386/lemonade.exe -j
zip pkg/lemonade_windows_amd64.zip dist/lemonade_windows_amd64/lemonade.exe -j
tar zcvf pkg/lemonade_linux_386.tar.gz -C dist/lemonade_linux_386/ lemonade
Expand Down

0 comments on commit 5245473

Please sign in to comment.