summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/pyinst/pyinst-build.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkg/pyinst/pyinst-build.mk b/pkg/pyinst/pyinst-build.mk
index 756185bf..92a1cbb3 100644
--- a/pkg/pyinst/pyinst-build.mk
+++ b/pkg/pyinst/pyinst-build.mk
@@ -1,5 +1,10 @@
freeze-ver:
cp pkg/version-template src/leap/bitmask/_version.py
+ sed -i 's/^version_version\(.*\)/version_version = "$(NEXT_VERSION)"/' src/leap/bitmask/_version.py
+ sed -i "s/^full_revisionid\(.*\)/full_revisionid='$(GIT_COMMIT)'/" src/leap/bitmask/_version.py
+
+freeze-ver-osx:
+ cp pkg/version-template src/leap/bitmask/_version.py
sed -i ' ' 's/^version_version\(.*\)/version_version = "$(NEXT_VERSION)"/' src/leap/bitmask/_version.py
sed -i ' ' "s/^full_revisionid\(.*\)/full_revisionid='$(GIT_COMMIT)'/" src/leap/bitmask/_version.py
@@ -9,6 +14,9 @@ hash-binaries:
pyinst: freeze-ver hash-binaries
pyinstaller -y pkg/pyinst/bitmask.spec
+pyinst_osx: freeze-ver-osx hash-binaries
+ pyinstaller -y pkg/pyinst/bitmask.spec
+
reset-ver:
git checkout -- src/leap/bitmask/_version.py
@@ -85,7 +93,7 @@ pyinst-upload:
pyinst-linux: pyinst reset-ver pyinst-hacks-linux pyinst-trim pyinst-cleanup pyinst-distribution-data pyinst-helpers-linux pyinst-tar
-pyinst-osx: pyinst reset-ver pyinst-hacks-osx pyinst-helpers-osx
+pyinst-osx: pyinst_osx reset-ver pyinst-hacks-osx pyinst-helpers-osx
clean_pkg:
rm -rf build dist