diff options
author | Kali Kaneko <kali@leap.se> | 2018-02-14 02:05:22 +0100 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-02-15 16:36:54 +0100 |
commit | d39adbba2883697fd5b7ec69b46cafd535efe021 (patch) | |
tree | f2b65c7c7308a51fdd10ea9816f1b807bcc9e4de | |
parent | 48957fb436cf7238a494b9861ed5433169538d86 (diff) |
[pkg] add target for anonvpn bundles
-rw-r--r-- | pkg/bundles/build.mk | 21 | ||||
-rw-r--r-- | pkg/docker_build_riseupvpn | 13 |
2 files changed, 23 insertions, 11 deletions
diff --git a/pkg/bundles/build.mk b/pkg/bundles/build.mk index bc78fa3f..90eeb946 100644 --- a/pkg/bundles/build.mk +++ b/pkg/bundles/build.mk @@ -48,16 +48,12 @@ bundle_linux_helpers: mkdir -p $(DIST_VERSION)/apps/helpers cp src/leap/bitmask/vpn/helpers/linux/bitmask-root $(DIST_VERSION)/apps/helpers/ cp src/leap/bitmask/vpn/helpers/linux/se.leap.bitmask.bundle.policy $(DIST_VERSION)/apps/helpers/ + +bundle_linux_qt_hacks: # now we copy some missing qt stuff... this might be fixed by pyinstaller at some point # this is "/mesa/libGL.so" in ubuntu ls -la /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0 cp /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0 $(DIST_VERSION)/lib/libGL.so.1 || echo "Cannot copy libGL" - # workaround for https://github.com/pyinstaller/pyinstaller/issues/2737 - #cp /usr/lib/x86_64-linux-gnu/nss/libsoftokn3.so $(DIST_VERSION)/lib/ || echo "libsoftokn3 not found" - #cp /usr/lib/x86_64-linux-gnu/nss/libfreeblpriv3.so $(DIST_VERSION)/lib/ || echo "libfreeblpriv3 not found" - #cp /usr/lib/x86_64-linux-gnu/qt5/libexec/QtWebEngineProcess $(DIST_VERSION)/lib/ || echo "QtWebEngineProcess not found" - #cp /usr/share/qt5/resources/icudtl.dat $(DIST_VERSION)/lib/ || echo "icudtl.dat not found" - #cp /usr/share/qt5/resources/qtwebengine_resources.pak $(DIST_VERSION)/lib/ || echo "qtwebengine_resources.pak not found" bundle_osx_helpers: @@ -102,7 +98,7 @@ bundle_osx_pkg: fi -bundle_linux: bundle bundle_linux_gpg bundle_linux_vpn bundle_linux_helpers +bundle_linux: bundle bundle_linux_gpg bundle_linux_vpn bundle_linux_helpers bundle_linux_qt_hacks bundle_osx: bundle bundle_osx_helpers bundle_osx_missing bundle_osx_pkg @@ -139,3 +135,14 @@ bundle_headless: cd pkg/launcher && make cp release-notes.rst $(HEADLESS_DIST_VERSION) cp pkg/launcher/bitmask $(HEADLESS_DIST_VERSION) + +bundle_anonvpn: + pyinstaller -y pkg/pyinst/anonvpn.spec + cp src/leap/bitmask/core/bitmaskd.tac $(DIST) + cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/leap/common/cacert.pem $(DIST)/ + echo `git describe` > $(HEADLESS_DIST)/version + mv $(DIST) _bundlelib && mkdir $(DIST_VERSION) && mv _bundlelib $(DIST_VERSION)lib/ + mkdir -p $(DIST_VERSION)/apps/providers + cp -r src/leap/bitmask/bonafide/providers/* $(DIST_VERSION)/apps/providers/ + +bundle_anonvpn_linux: bundle_anonvpn bundle_linux_vpn bundle_linux_helpers diff --git a/pkg/docker_build_riseupvpn b/pkg/docker_build_riseupvpn index 4cffcb49..ab859c27 100644 --- a/pkg/docker_build_riseupvpn +++ b/pkg/docker_build_riseupvpn @@ -7,24 +7,29 @@ # build bitmask-systray export GOPATH=/srv/go +echo "[+] Building deps for bitmask-systray..." go get 0xacab.org/leap/bitmask-systray cd /src/leap && git clone https://0xacab.org/leap/bitmask-systray cd bitmask-systray && go build . - cd /src/leap/bitmask-dev -RELEASE=bitmask-`cat pkg/next-version` cd $HOME echo "[+] CLONING REPO from $REPO [$BRANCH]" git clone $REPO bitmaskbuild cd bitmaskbuild +RELEASE=bitmask-`cat pkg/next-version` +echo "[+] RELEASE: $RELEASE" git checkout $BRANCH git fetch --tags mkdir -p dist/ # nuke mail rm -rf src/leap/bitmask/mail + +# get anonvpn bundle +VIRTUAL_ENV=/usr/local make bundle_anonvpn_linux +# copy systray binary cp /src/leap/bitmask-systray/bitmask-systray dist/${RELEASE}/lib/ -VIRTUAL_ENV=/usr/local make bundle_linux +# rename entrypoing +mv dist/${RELEASE}/bitmask dist/${RELEASE}/riseupvpn cp -r dist/* /dist - |