-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathbuild_mac
executable file
·31 lines (22 loc) · 999 Bytes
/
build_mac
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
set -euxo pipefail
CLEAN_BUILD=1
QT_BIN_PATH="$HOME/Qt/6.8.0/macos/bin"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"
[ "$CLEAN_BUILD" == 1 ] && rm -rf vel_build Velocity/build/ XboxInternals/build/
mkdir -p vel_build ; cd vel_build
mkdir -p internals ; cd internals
"$QT_BIN_PATH/qmake6" -config release ../../XboxInternals/XboxInternals.pro
make -j10
cd ..
mkdir -p vel || true ; cd vel
"$QT_BIN_PATH/qmake6" -config release ../../Velocity/Velocity.pro
make -j10
cd ..
cd "$SCRIPT_DIR"
find ./Velocity/build
"$QT_BIN_PATH/macdeployqt6" ./Velocity/build/Velocity-OSX/release/Velocity.app
codesign --entitlements app.entitlements --deep --force --options runtime --sign "DEVELOPER_ID_HERE" ./Velocity/build/Velocity-OSX/release/Velocity.app
[ "$CLEAN_BUILD" == 1 ] && open ./Velocity/build/Velocity-OSX/release/Velocity.app/
[ "$CLEAN_BUILD" == 0 ] && ./Velocity/build/Velocity-OSX/release/Velocity.app/Contents/MacOS/Velocity