Skip to content
Snippets Groups Projects
Verified Commit 27803ec1 authored by meskio's avatar meskio :tent:
Browse files

[pkg] use the version string from the systray

parent ad175ba3
Branches
No related tags found
No related merge requests found
SYSTRAY := 0xacab.org/leap/bitmask-systray.git SYSTRAY := 0xacab.org/leap/bitmask-systray
STAGING := staging STAGING := staging
SYSTRAY_BIN := bitmask-systray SYSTRAY_BIN := bitmask-systray
HELPER_BIN := bitmask_helper HELPER_BIN := bitmask_helper
APP_NAME := RiseupVPN APP_NAME := RiseupVPN
BUILD_RELEASE?=no BUILD_RELEASE?=no
OSX_CERT = "Developer ID Installer: LEAP Encryption Access Project" OSX_CERT = "Developer ID Installer: LEAP Encryption Access Project"
VERSION = $(shell cat version) VERSION = $(shell git -C `go env GOPATH`/src/$(SYSTRAY) describe --tags)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Windows # Windows
...@@ -51,11 +51,11 @@ helper_osx: ...@@ -51,11 +51,11 @@ helper_osx:
upx $(STAGING)/$(HELPER_BIN) upx $(STAGING)/$(HELPER_BIN)
systray_osx: systray_osx:
go get -tags "standalone" -u $(SYSTRAY) go get -tags "standalone" -u $(SYSTRAY)
go build -tags "standalone" -o $(STAGING)/$(SYSTRAY_BIN) $(SYSTRAY) go build -tags "standalone" -ldflags "-X main.version=$(VERSION)" -o $(STAGING)/$(SYSTRAY_BIN) $(SYSTRAY)
upx $(STAGING)/$(SYSTRAY_BIN) upx $(STAGING)/$(SYSTRAY_BIN)
bundle_osx: bundle_osx:
mkdir -p dist mkdir -p dist
make -C osx make -C osx VERSION=$(VERSION)
pkg_osx: pkg_osx:
osx/quickpkg --output dist/$(APP_NAME)-$(VERSION)_unsigned.pkg --scripts osx/scripts/ dist/$(APP_NAME).app/ osx/quickpkg --output dist/$(APP_NAME)-$(VERSION)_unsigned.pkg --scripts osx/scripts/ dist/$(APP_NAME).app/
@if [ $(BUILD_RELEASE) = no ]; then\ @if [ $(BUILD_RELEASE) = no ]; then\
......
generate: generate:
python ./generate.py python ./generate.py $(VERSION)
...@@ -30,7 +30,7 @@ TEMPLATE_HELPER = 'template-helper.plist' ...@@ -30,7 +30,7 @@ TEMPLATE_HELPER = 'template-helper.plist'
TEMPLATE_PREINSTALL = 'template-preinstall' TEMPLATE_PREINSTALL = 'template-preinstall'
TEMPLATE_POSTINSTALL = 'template-postinstall' TEMPLATE_POSTINSTALL = 'template-postinstall'
VERSION = open(os.path.join(here, '..', 'version')).read().strip() VERSION = sys.argv[1]
APP_PATH = os.path.abspath(here + '/../dist/' + APP_NAME + ".app") APP_PATH = os.path.abspath(here + '/../dist/' + APP_NAME + ".app")
STAGING = os.path.abspath(here + '/../staging/') STAGING = os.path.abspath(here + '/../staging/')
......
0.11
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment