From 12a7bf00b8e269a3e42ee3da6b70bec68c5231b5 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 3 Jan 2019 17:54:41 +0100 Subject: [pkg] Build a release tgz - Related: bitmask-systray#94 --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index a0e8f7d..2c85152 100755 --- a/Makefile +++ b/Makefile @@ -7,6 +7,17 @@ BUILD_RELEASE?=no OSX_CERT = "Developer ID Installer: LEAP Encryption Access Project" VERSION = $(shell git -C `go env GOPATH`/src/$(SYSTRAY) describe --tags --always) +TGZ_PATH = $(shell pwd)/dist/riseup-vpn-$(VERSION) +tgz: + mkdir -p $(TGZ_PATH) + git -C `go env GOPATH`/src/$(SYSTRAY) archive HEAD | tar -x -C $(TGZ_PATH) + mkdir $(TGZ_PATH)/helpers + wget -O $(TGZ_PATH)/helpers/bitmask-root https://0xacab.org/leap/bitmask-dev/raw/master/src/leap/bitmask/vpn/helpers/linux/bitmask-root + chmod +x $(TGZ_PATH)/helpers/bitmask-root + wget -O $(TGZ_PATH)/helpers/se.leap.bitmask.policy https://0xacab.org/leap/bitmask-dev/raw/master/src/leap/bitmask/vpn/helpers/linux/se.leap.bitmask.policy + cd dist; tar cvzf riseup-vpn-$(VERSION).tgz riseup-vpn-$(VERSION) + rm -r $(TGZ_PATH) + # ----------------------------------------------------------------------------- # Windows # ----------------------------------------------------------------------------- -- cgit v1.2.3