blob: ab859c27b93c7c2f8da5b8c9967fff2f016c5bdc (
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
|
# This script gets executed inside the docker-bundler-apt image.
# (no virtualenv, so all the dependencies must be already installed in the image).
: ${REPO:="https://github.com/leapcode/bitmask-dev"}
: ${BRANCH:="master"}
# 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
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/
# rename entrypoing
mv dist/${RELEASE}/bitmask dist/${RELEASE}/riseupvpn
cp -r dist/* /dist
|