File tree Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Expand file tree Collapse file tree 2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ CONF := $(DESTDIR)/$(CONFIG_PATH)
3737SHARE := $(DESTDIR ) /usr/share/spreed-webrtc-server
3838
3939BUILD_ARCH := $(shell go env GOARCH)
40+ BUILD_OS := $(shell go env GOOS)
4041DIST := $(CURDIR ) /dist_$(BUILD_ARCH )
4142DIST_SRC := $(DIST ) /src
4243DIST_BIN := $(DIST ) /bin
@@ -185,6 +186,6 @@ tarball: DOCS = $(CONF)/docs
185186tarball : SHARE = $(TARPATH ) /
186187tarball : distclean release install
187188 echo -n $(VERSION ) > $(TARPATH ) /version.txt
188- tar czf $(DIST ) /$(PACKAGE_NAME ) .tar.gz -C $(DIST ) $(PACKAGE_NAME )
189+ tar czf $(DIST ) /$(PACKAGE_NAME ) _ $( BUILD_OS ) _ $( BUILD_ARCH ) .tar.gz -C $(DIST ) $(PACKAGE_NAME )
189190
190191.PHONY : hook clean distclean pristine get getupdate build styles javascript release releasetest dist_gopath install gopath binary binaryrace binaryall tarball assets
Original file line number Diff line number Diff line change 1+ Linux:
2+
3+ Target linux/amd64
4+ GOOS=linux GOARCH=amd64 make tarball
5+
6+ Target linux/386:
7+ GOOS=linux GOARCH=386 make tarball
8+
9+ Target linux/armv5
10+ GOOS=linux GOARCH=arm GOARM=5 make tarball
11+
12+ Target linux/armv6
13+ GOOS=linux GOARCH=arm GOARM=6 make tarball
14+
15+ Target linux/armv7
16+ GOOS=linux GOARCH=arm GOARM=7 make tarball
17+
18+
19+ Mac:
20+
21+ Target darwin/amd64
22+ GOOS=darwin GOARCH=amd64 make tarball
23+
24+
25+ Windows:
26+
27+ Target windows/386
28+ GOOS=windows GOARCH=386 make tarball
29+
30+ Target windows/amd64
31+ GOOS=windows GOARCH=amd64 make tarball
32+
You can’t perform that action at this time.
0 commit comments