-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-otter.sh
executable file
·31 lines (26 loc) · 1.02 KB
/
build-otter.sh
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
#!/bin/bash -ex
git clone --depth 1 https://github.com/OtterBrowser/otter-browser.git
cp deploy.py otter-browser/packaging/deploy.py
mkdir otter-browser-build
cmake -Botter-browser-build -Hotter-browser -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$QTDIR $CMAKE_ARGS -G "$CMAKE_GENERATOR"
cmake --build otter-browser-build --config Release -j $HOST_N_CORES
echo "Built successfully, trying to run result"
export QT_QPA_PLATFORM=minimal
UNAME=$(uname)
BUILD_DIR=otter-browser-build
if [ "${CMAKE_GENERATOR:0:5}" = "Visua" ]; then
BUILD_DIR=otter-browser-build/Release
fi
ls -la $BUILD_DIR
if [ "$UNAME" = "Darwin" ]; then
"$BUILD_DIR/Otter Browser.app/Contents/MacOS/Otter Browser" --version
else
$BUILD_DIR/otter-browser --version
fi
PYTHON=python3
if which py >& /dev/null; then
PYTHON=py
fi
mkdir otter-browser-packages
$PYTHON otter-browser/packaging/deploy.py --enable-portable --preserve-deployment-directory --build-path=$BUILD_DIR --target-path=otter-browser-packages $OTTER_DEPLOY_ARGS
find otter-browser-packages