diff options
| author | David Skoland <davidskoland@gmail.com> | 2019-06-29 00:27:31 +0000 |
|---|---|---|
| committer | oldmud0 <3421260-oldmud0@users.noreply.gitlab.com> | 2019-06-29 00:27:31 +0000 |
| commit | f2a4ac013dd0cd1b054a8fa604bc75a659cff3ff (patch) | |
| tree | 69a651830dea50eb4800cbbeb77caf9aacb9fff3 /scripts/release_macos.sh | |
| parent | 15db260639a157bffaaf55d10a6e4351aa4c154a (diff) | |
Mac improvements
Just modifying build scripts to make it less painful to build and release on Mac
See merge request AttorneyOnline/AO2-Client!64
Diffstat (limited to 'scripts/release_macos.sh')
| -rwxr-xr-x | scripts/release_macos.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/release_macos.sh b/scripts/release_macos.sh new file mode 100755 index 00000000..50acb408 --- /dev/null +++ b/scripts/release_macos.sh @@ -0,0 +1,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 +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 |
