Skip to content

Commit 7df9a64

Browse files
committed
Addded OS name to binary tarballs.
1 parent 763ddd7 commit 7df9a64

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ CONF := $(DESTDIR)/$(CONFIG_PATH)
3737
SHARE := $(DESTDIR)/usr/share/spreed-webrtc-server
3838

3939
BUILD_ARCH := $(shell go env GOARCH)
40+
BUILD_OS := $(shell go env GOOS)
4041
DIST := $(CURDIR)/dist_$(BUILD_ARCH)
4142
DIST_SRC := $(DIST)/src
4243
DIST_BIN := $(DIST)/bin
@@ -185,6 +186,6 @@ tarball: DOCS = $(CONF)/docs
185186
tarball: SHARE = $(TARPATH)/
186187
tarball: 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

doc/CROSSCOMPILE.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+

0 commit comments

Comments
 (0)