diff --git a/Makefile b/Makefile index a0e8f7d1161a8266b6095ad6c2be3aa3fc2d4997..2c851524a0b35ad623973ef8b4fd5cc5cc0095a2 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 # -----------------------------------------------------------------------------