blob: b96e5dabcd83ca67e5506834e9b65c53214b1d48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
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
hash-binaries:
OPENVPN_BIN=$(LEAP_BUILD_DIR)openvpn BITMASK_ROOT=pkg/linux/bitmask-root python setup.py hash_binaries
pyinst: freeze-ver hash-binaries
pyinstaller -y pkg/pyinst/bitmask.spec
reset-ver:
git checkout -- src/leap/bitmask/_version.py
pyinst-hacks-linux:
# XXX this should be taken care of by pyinstaller data collector
cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/leap/common/cacert.pem $(DIST)
mkdir -p $(DIST)pysqlcipher
mkdir -p $(DIST)pixelated
mkdir -p $(DIST)twisted/web
cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/pysqlcipher/_sqlite.so $(DIST)pysqlcipher
cp -r $(VIRTUAL_ENV)/lib/python2.7/site-packages/pixelated_www $(DIST)
cp -r $(VIRTUAL_ENV)/lib/python2.7/site-packages/pixelated/assets/ $(DIST)pixelated
cp -r $(VIRTUAL_ENV)/lib/python2.7/site-packages/twisted/web/failure.xhtml $(DIST)twisted/web/
pyinst-hacks-osx:
# XXX this should be taken care of by pyinstaller data collector
cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/leap/common/cacert.pem $(DIST)
cp $(VIRTUAL_ENV)/lib/python2.7/site-packages/leap/common/cacert.pem $(DIST_OSX)Contents/MacOS/
mv $(DIST_OSX)Contents/MacOS/bitmask $(DIST_OSX)Contents/MacOS/bitmask-app
cp pkg/osx/bitmask-wrapper $(DIST_OSX)Contents/MacOS/bitmask
# XXX need the rest???
pyinst-trim:
rm -f $(DIST)libQtOpenGL.so.4
rm -f $(DIST)libQtSql.so.4
rm -f $(DIST)libQt3Support.so.4
rm -f $(DIST)libaudio.so.2
rm -f $(DIST)libnvidia-*
pyinst-cleanup:
rm -rf $(DIST)config
mkdir -p $(DIST_VERSION)
mv $(DIST) $(DIST_VERSION)lib
cd pkg/launcher && make
mv pkg/launcher/bitmask $(DIST_VERSION)
pyinst-distribution-data:
cp release-notes.rst $(DIST_VERSION)
cp pkg/PixelatedWebmail.README $(DIST_VERSION)
cp LICENSE $(DIST_VERSION)
pyinst-helpers-linux:
mkdir -p $(DIST_VERSION)apps/eip/files
cp $(LEAP_BUILD_DIR)openvpn $(DIST_VERSION)apps/eip/files/leap-openvpn
cp pkg/linux/bitmask-root $(DIST_VERSION)apps/eip/files/
cp pkg/linux/leap-install-helper.sh $(DIST_VERSION)apps/eip/files/
cp pkg/linux/polkit/se.leap.bitmask.bundle.policy $(DIST_VERSION)apps/eip/files/
mkdir -p $(DIST_VERSION)apps/mail
cp $(LEAP_BUILD_DIR)gpg $(DIST_VERSION)apps/mail
pyinst-helpers-osx:
mkdir -p $(DIST_OSX_RES)bitmask-helper
mkdir -p $(DIST_OSX)Contents/MacOS/apps/mail
cp pkg/osx/client.up.sh $(DIST_OSX_RES)
cp pkg/osx/client.down.sh $(DIST_OSX_RES)
cp pkg/osx/bitmask-helper $(DIST_OSX_RES)bitmask-helper/
cp pkg/osx/bitmask.pf.conf $(DIST_OSX_RES)bitmask-helper/
cp pkg/osx/se.leap.bitmask-helper.plist $(DIST_OSX_RES)bitmask-helper/
cp pkg/osx/post-inst.sh $(DIST_OSX_RES)bitmask-helper/
cp pkg/osx/daemon.py $(DIST_OSX_RES)bitmask-helper/
cp /opt/homebrew-cask/Caskroom/tuntap/20150118/tuntap_20150118.pkg $(DIST_OSX_RES)
# TODO make the build script put it there
cp ~/leap_thirdparty_build/openvpn.leap.polarssl $(DIST_OSX_RES)openvpn.leap
cp ~/leap_thirdparty_build/gpg $(DIST_OSX)Contents/MacOS/apps/mail/
pyinst-tar:
cd dist/ && tar cvzf Bitmask.$(NEXT_VERSION).tar.gz bitmask-$(NEXT_VERSION)
pyinst-sign:
gpg2 -a --sign --detach-sign dist/Bitmask.$(NEXT_VERSION).tar.gz
pyinst-upload:
rsync --rsh='ssh' -avztlpog --progress --partial dist/Bitmask.$(NEXT_VERSION).* salmon.leap.se:./
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
clean_pkg:
rm -rf build dist
|