File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
VERSION =$(shell git describe --tags)
2
+ LDFLAGS =-ldflags "-s -w"
2
3
3
4
all : linux darwin windows
4
5
11
12
upx -9 bin/*
12
13
13
14
linux :
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
16
17
17
18
darwin :
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
19
20
20
21
windows :
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
23
24
24
25
zip :
25
26
zip -r flutter-webrtc-server-bin-${VERSION} .zip bin configs web
You can’t perform that action at this time.
0 commit comments