aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
blob: 70524419e4ba5f9fc4e08184d2cb2ef810ef4232 (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
#!/bin/bash

set -e

if [ -z ${SANDBOX_PATH} ]; then
    echo "you must set SANDBOX_PATH to point to the built LibreVideoConverter sandbox"
    exit 1
fi

if [ -z ${BKIT_PATH} ]; then
    echo "you must set BKIT_PATH to point to the LibreVideoConverter binary kit"
    exit
fi

export MACOSX_DEPLOYMENT_TARGET=10.6

${SANDBOX_PATH}/Frameworks/Python.framework/Versions/2.7/bin/python setup.py develop

${SANDBOX_PATH}/Frameworks/Python.framework/Versions/2.7/bin/python setup.py py2app

if [ "$1" = "--sign" ]; then
    source sign.sh
fi

if [ "$2" = "--installer" ] ; then
    source build_installer.sh
fi