aboutsummaryrefslogtreecommitdiff
path: root/scripts/macos_post_build.sh
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2019-01-07 10:17:26 -0600
committerGitHub <noreply@github.com>2019-01-07 10:17:26 -0600
commit33dd06e9aa4de11c4e8f9e51bebfdede39c61573 (patch)
tree41c5291ec187c76dea5b9c55f389186b6ee874a1 /scripts/macos_post_build.sh
parent57b02c084ae6884c35dbf5a126ee2ec256ba1ca4 (diff)
parentf0069768a76293f00e26714a3c37d7f69e3ad4a5 (diff)
Merge pull request #56 from OmniTroid/master
Small fixes, decluttering + better build scripts
Diffstat (limited to 'scripts/macos_post_build.sh')
-rw-r--r--scripts/macos_post_build.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/macos_post_build.sh b/scripts/macos_post_build.sh
new file mode 100644
index 00000000..d69da0b4
--- /dev/null
+++ b/scripts/macos_post_build.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+DST_FOLDER="./bin/Attorney_Online.app/Contents/Frameworks"
+
+cd ..
+
+mkdir $DST_FOLDER
+
+cp ./lib/libbass.dylib $DST_FOLDER
+cp ./lib/libbassopus.dylib $DST_FOLDER
+
+install_name_tool -id @executable_path/../Frameworks/libbass.dylib $DST_FOLDER/libbass.dylib
+
+install_name_tool -id @executable_path/../Frameworks/libbassopus.dylib $DST_FOLDER/libbassopus.dylib
+
+install_name_tool -change @loader_path/libbass.dylib @executable_path/../Frameworks/libbass.dylib ./bin/Attorney_Online.app/Contents/MacOS/Attorney_Online