summaryrefslogtreecommitdiff
path: root/pkg/build_osx_bundle_riseupvpn_with_venv.sh
blob: 7f81984939e68ecaf2944d7dbaa3326f90a8ff9e (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
#!/bin/bash
###########################################################
# Build a RiseupVPN bundle inside a fresh virtualenv (OSX).
###########################################################

# Stop bundling in case of errors
set -e

VENV=venv

echo "[+] BUILDING RiseupVPN BUNDLE..."
echo "[+] GIT VERSION" `git describe`

if [ ! -d "$VENV" ]; then
  echo "[+] creating virtualenv in venv"
  virtualenv $VENV
fi
source "$VENV"/bin/activate
echo "[+] Using venv in" $VIRTUAL_ENV

$VIRTUAL_ENV/bin/pip install -U pyinstaller
$VIRTUAL_ENV/bin/pip install zope.interface zope.proxy

$VIRTUAL_ENV/bin/pip install -r pkg/requirements-osx.pip

# Get the bundled libzmq
$VIRTUAL_ENV/bin/pip install -I pyzmq --install-option="--zmq=bundled"

# Install bitmask in development mode
$VIRTUAL_ENV/bin/pip install -e .

# Get latest tags from repo
git fetch --tags
make bundle_anonvpn_osx