diff options
author | Chris <ccbrown112@gmail.com> | 2018-02-26 01:48:56 -0600 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-02-26 02:48:56 -0500 |
commit | f0f4f68defef1e9360394ba740c57cff7124dc9c (patch) | |
tree | c65e403420d3376a635a3fdd2c9930d173b2a6bb /build | |
parent | 838295f82c4bad22bd83a30a5b157dd717f8ceb6 (diff) | |
download | chat-f0f4f68defef1e9360394ba740c57cff7124dc9c.tar.gz chat-f0f4f68defef1e9360394ba740c57cff7124dc9c.tar.bz2 chat-f0f4f68defef1e9360394ba740c57cff7124dc9c.zip |
add individual platform packaging targets (#8366)
Diffstat (limited to 'build')
-rw-r--r-- | build/release.mk | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/build/release.mk b/build/release.mk index 5eaee8022..8bd4f9afd 100644 --- a/build/release.mk +++ b/build/release.mk @@ -20,9 +20,7 @@ build-client: cd $(BUILD_WEBAPP_DIR) && $(MAKE) build -package: - @ echo Packaging mattermost - +package-common: @# Remove any old files rm -Rf $(DIST_ROOT) @@ -59,9 +57,7 @@ endif cp NOTICE.txt $(DIST_PATH) cp README.md $(DIST_PATH) - @# ----- PLATFORM SPECIFIC ----- - - @# Make osx package +package-osx: package-common @# Copy binary ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64") cp $(GOPATH)/bin/platform $(DIST_PATH)/bin # from native bin dir, not cross-compiled @@ -73,7 +69,7 @@ endif @# Cleanup rm -f $(DIST_PATH)/bin/platform - @# Make windows package +package-windows: package-common @# Copy binary ifeq ($(BUILDER_GOOS_GOARCH),"windows_amd64") cp $(GOPATH)/bin/platform.exe $(DIST_PATH)/bin # from native bin dir, not cross-compiled @@ -85,7 +81,7 @@ endif @# Cleanup rm -f $(DIST_PATH)/bin/platform.exe - @# Make linux package +package-linux: package-common @# Copy binary ifeq ($(BUILDER_GOOS_GOARCH),"linux_amd64") cp $(GOPATH)/bin/platform $(DIST_PATH)/bin # from native bin dir, not cross-compiled @@ -96,3 +92,5 @@ endif tar -C dist -czf $(DIST_PATH)-$(BUILD_TYPE_NAME)-linux-amd64.tar.gz mattermost @# Don't clean up native package so dev machines will have an unzipped package available @#rm -f $(DIST_PATH)/bin/platform + +package: package-linux package-windows package-osx |