Skip to content

Commit 9af113d

Browse files
committed
fix make release.
1 parent c5c0006 commit 9af113d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
VERSION=$(shell git describe --tags)
2+
13
all: linux darwin windows
24

3-
release: all tar
5+
release: all zip
46

57
clean:
6-
rm -rf bin/*
8+
rm -rf bin/* *.zip
79

810
upx:
911
upx -9 bin/*
@@ -19,5 +21,5 @@ windows:
1921
CGO_ENABLE=0 GOOS=windows GOARCH=amd64 go build -o bin/server-windows-amd64.exe -ldflags "-s -w" cmd/server/main.go
2022
CGO_ENABLE=0 GOOS=windows GOARCH=386 go build -o bin/server-windows-i386.exe -ldflags "-s -w" cmd/server/main.go
2123

22-
tar:
23-
tar jcvf flutter-webrtc-server-bin.tar.bz2 bin configs web
24+
zip:
25+
zip -r fws-webrtc-server-bin-${VERSION}.zip bin configs web

0 commit comments

Comments
 (0)