diff --git a/Makefile b/Makefile index 3f7c2c8..4c56fc4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ BIN ?= browserpass +VERSION ?= undefined APP_ID = com.github.browserpass.native OS = $(shell uname -s) @@ -42,6 +43,9 @@ clean: .PHONY: dist dist: clean browserpass-linux64 browserpass-darwinx64 browserpass-openbsd64 browserpass-freebsd64 browserpass-windows64 mkdir -p dist + + git archive -o dist/$(VERSION).tar.gz --format tar.gz --prefix=browserpass-native-$(VERSION)/ $(VERSION) + zip -FS dist/browserpass-linux64 browserpass-linux64 browser-files/* Makefile README.md LICENSE zip -FS dist/browserpass-darwinx64 browserpass-darwinx64 browser-files/* Makefile README.md LICENSE zip -FS dist/browserpass-openbsd64 browserpass-openbsd64 browser-files/* Makefile README.md LICENSE @@ -52,6 +56,8 @@ dist: clean browserpass-linux64 browserpass-darwinx64 browserpass-openbsd64 brow gpg --detach-sign "$$file"; \ done + rm -f dist/$(VERSION).tar.gz + ####################### # For user installation