From bb27b6095db20791b36662167bf737913ff3f37d Mon Sep 17 00:00:00 2001 From: David Skoland Date: Thu, 3 Jan 2019 00:04:16 +0100 Subject: [PATCH] added macos post build script --- scripts/macos_post_build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/macos_post_build.sh diff --git a/scripts/macos_post_build.sh b/scripts/macos_post_build.sh new file mode 100644 index 0000000..875078b --- /dev/null +++ b/scripts/macos_post_build.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +DST_FOLDER="./bin/Attorney_Online.app/Contents/Frameworks" + +cd .. + +mkdir $DST_FOLDER + +cp libbass.dylib $DST_FOLDER +cp libbassopus.dylib $DST_FOLDER + +install_name_tool -id @executable_path/../Frameworks/libbass.dylib $DST_FOLDER/libbass.dylib + +install_name_tool -change @loader_path/libbass.dylib @executable_path/../Frameworks/libbass.dylib ./bin/Attorney_Online.app/Contents/MacOS/Attorney_Online