Skip to content

Commit fba068d

Browse files
committed
Update makefile
1 parent 57351b4 commit fba068d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ test:
2020
go test -cover ./...
2121

2222
build-macos:
23-
GOOS=darwin $(GOBUILD) -o main.go -o $(RELEASEDIR)/gstatic_macos
23+
GOOS=darwin $(GOBUILD) -ldflags="-s -w" -o main.go -o $(RELEASEDIR)/gstatic_macos
2424

2525
build-linux:
26-
GOOS=linux $(GOBUILD) -o main.go -o $(RELEASEDIR)/gstatic_linux
26+
GOOS=linux $(GOBUILD) -ldflags="-s -w" -o main.go -o $(RELEASEDIR)/gstatic_linux
2727

2828
build-win: setup
29-
GOOS=windows GOARCH=386 $(GOBUILD) -o main.go -o $(RELEASEDIR)/gstatic.exe
29+
GOOS=windows GOARCH=386 $(GOBUILD) -ldflags="-s -w" -o main.go -o $(RELEASEDIR)/gstatic.exe
3030

3131
release: clean build-linux build-win build-macos

0 commit comments

Comments
 (0)