aboutsummaryrefslogtreecommitdiff
path: root/scripts/macos_post_build.sh
blob: 25400bf548b4f67bdfb994f8789019e3dcfcfb5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# This script prepares the compiled bundle for shipping as a standalone release
# Assumes the Qt bin folder is in PATH
# Should be used on a "Release" build from QT creator
# Note that this DOES NOT add the base/ folder

# Exit on errors and unset variables
set -eu

ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/"

cd ${ROOT_DIR}

# This thing basically does all the work
/usr/local/opt/qt/bin/macdeployqt ../bin/Attorney_Online.app

# Need to add the dependencies
cp ../lib/* ../bin/Attorney_Online.app/Contents/Frameworks

# libbass has a funny path for some reason, just use rpath
install_name_tool -change @loader_path/libbass.dylib @rpath/libbass.dylib ../bin/Attorney_Online.app/Contents/MacOS/Attorney_Online