summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-10-03 00:54:23 +0200
committerKali Kaneko <kali@leap.se>2017-10-03 02:50:15 +0200
commit12e179dafd214362aa48fdf729310f9e7c6d577f (patch)
treee56e33e83edf7a1e0923ffc8e281027e2464f932 /pkg
parent93c5426f7979ab20202ec5cc0c81c805103a4439 (diff)
[pkg] pin pyinstaller version
Also, allow to pass a different repo to the build-in-docker script. - Resolves: #9089
Diffstat (limited to 'pkg')
-rwxr-xr-xpkg/build_bundle_with_venv.sh4
-rw-r--r--pkg/bundles/build.mk1
-rw-r--r--pkg/docker_build13
3 files changed, 12 insertions, 6 deletions
diff --git a/pkg/build_bundle_with_venv.sh b/pkg/build_bundle_with_venv.sh
index ce82c779..1ca267cc 100755
--- a/pkg/build_bundle_with_venv.sh
+++ b/pkg/build_bundle_with_venv.sh
@@ -4,6 +4,7 @@
# To be run by Gitlab Runner,
# will produce an artifact for each build.
###########################################################
+
# Stop bundling in case of errors
set -e
@@ -20,7 +21,8 @@ source "$VENV"/bin/activate
echo "[+] Using venv in" $VIRTUAL_ENV
$VIRTUAL_ENV/bin/pip install appdirs packaging
-$VIRTUAL_ENV/bin/pip install -U pyinstaller
+# qt-plugins instability in develop: see https://github.com/pyinstaller/pyinstaller/issues/1906
+$VIRTUAL_ENV/bin/pip install -U pyinstaller==3.2.1
$VIRTUAL_ENV/bin/pip install zope.interface zope.proxy
# fix for #8789
diff --git a/pkg/bundles/build.mk b/pkg/bundles/build.mk
index 8c7f7fbb..4dd43fcf 100644
--- a/pkg/bundles/build.mk
+++ b/pkg/bundles/build.mk
@@ -23,6 +23,7 @@ bundle: bundle_clean
echo `git describe` > $(DIST)/version
mv $(DIST) _bundlelib && mkdir $(DIST_VERSION) && mv _bundlelib $(DIST_VERSION)/lib/
cd pkg/launcher && make
+ cp release-notes.rst $(DIST_VERSION)
cp pkg/launcher/bitmask $(DIST_VERSION)
bundle_linux_gpg:
diff --git a/pkg/docker_build b/pkg/docker_build
index 192ae587..9669a87f 100644
--- a/pkg/docker_build
+++ b/pkg/docker_build
@@ -1,7 +1,10 @@
-git clone https://github.com/leapcode/bitmask-dev bitmaskbuild
-mkdir -p dist/
+: ${REPO:="https://github.com/leapcode/bitmask-dev"}
+: ${BRANCH:="master"}
+
+RELEASE=bitmask-`cat pkg/next-version`
+echo "[+] CLONING REPO from $REPO [$BRANCH]"
+git clone $REPO bitmaskbuild
cd bitmaskbuild
+git checkout $BRANCH
+mkdir -p dist/
pkg/build_bundle_with_venv.sh
-
-cp -r bitmaskbuild/dist/ dist/
-rm -rf bitmaskbuild