diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2019-07-10 17:12:00 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2019-08-05 11:46:12 -0400 |
commit | e635c5b43df0ed6f28c05429dae126d645ac8717 (patch) | |
tree | 5879cb4d24a00a357264196bcb5bf48bd3500bc7 /Makefile | |
parent | 92ea8778813ddffe6187e0ce300638fdefe1bf5e (diff) |
[feat] windows templates
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -5,6 +5,7 @@ TAGS ?= gtk_3_18 PROVIDER ?= $(shell grep ^'provider =' branding/config/vendor.conf | cut -d '=' -f 2 | tr -d "[:space:]") PROVIDER_CONFIG ?= branding/config/vendor.conf DEFAULT_PROVIDER = branding/assets/default/ +VERSION ?= $(shell git describe) all: icon locales get build @@ -22,13 +23,35 @@ endif cd branding/assets && ln -s ${PROVIDER} default prepare: generate relink_default + mkdir -p build/${PROVIDER}/bin/ branding/scripts/check-ca-crt.py ${PROVIDER} ${PROVIDER_CONFIG} +prepare_win: + mkdir -p build/${PROVIDER}/windows/ + cp -r branding/templates/windows build/${PROVIDER} + VERSION=${VERSION} PROVIDER_CONFIG=${PROVIDER_CONFIG} branding/scripts/generate-win.py build/${PROVIDER}/windows/data.json + cd build/${PROVIDER}/windows && python3 generate.py + # TODO create build/PROVIDER/assets/ + # TODO create build/PROVIDER/staging/ + +prepare_osx: + echo "osx..." + +prepare_snap: + echo "snap..." + +prepare_debian: + echo "debian..." + +prepare_all: prepare prepare_win prepare_osx prepare_snap + build: $(foreach path,$(wildcard cmd/*),build_$(patsubst cmd/%,%,$(path))) build_%: go build -tags $(TAGS) -ldflags "-X main.version=`git describe --tags`" -o $* ./cmd/$* strip $* + mkdir -p build/bin + mv $* build/bin/ test: go test -tags "integration $(TAGS)" ./... @@ -41,7 +64,7 @@ build_win: clean: make -C icon clean - rm bitmask-vpn + rm build/bitmask-vpn icon: make -C icon |