File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11VERSION =$(shell git describe --tags)
2+ LDFLAGS =-ldflags "-s -w"
23
34all : linux darwin windows
45
1112 upx -9 bin/*
1213
1314linux :
14- CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -o bin/server-linux-amd64 -ldflags " -s -w " cmd/server/main.go
15- CGO_ENABLE=0 GOOS=linux GOARCH=386 go build -o bin/server-linux-i386 -ldflags " -s -w " cmd/server/main.go
15+ CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -o bin/server-linux-amd64 ${LDFLAGS} cmd/server/main.go
16+ CGO_ENABLE=0 GOOS=linux GOARCH=386 go build -o bin/server-linux-i386 ${LDFLAGS} cmd/server/main.go
1617
1718darwin :
18- CGO_ENABLE=0 GOOS=darwin GOARCH=amd64 go build -o bin/server-darwin-amd64 -ldflags " -s -w " cmd/server/main.go
19+ CGO_ENABLE=0 GOOS=darwin GOARCH=amd64 go build -o bin/server-darwin-amd64 ${LDFLAGS} cmd/server/main.go
1920
2021windows :
21- CGO_ENABLE=0 GOOS=windows GOARCH=amd64 go build -o bin/server-windows-amd64.exe -ldflags " -s -w " cmd/server/main.go
22- CGO_ENABLE=0 GOOS=windows GOARCH=386 go build -o bin/server-windows-i386.exe -ldflags " -s -w " cmd/server/main.go
22+ CGO_ENABLE=0 GOOS=windows GOARCH=amd64 go build -o bin/server-windows-amd64.exe ${LDFLAGS} cmd/server/main.go
23+ CGO_ENABLE=0 GOOS=windows GOARCH=386 go build -o bin/server-windows-i386.exe ${LDFLAGS} cmd/server/main.go
2324
2425zip :
2526 zip -r flutter-webrtc-server-bin-${VERSION} .zip bin configs web
You can’t perform that action at this time.
0 commit comments