From 8fb1d51dfd3990ea6f534a150ff614628d176dad Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 30 Apr 2016 21:44:37 +0100 Subject: [PATCH] OSX Release Build R libs into Bundle .. a script to copy the R dylibs to the app bundle and update the paths to the libs --- util/osx_bundle_fix.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 util/osx_bundle_fix.sh diff --git a/util/osx_bundle_fix.sh b/util/osx_bundle_fix.sh new file mode 100755 index 000000000..ecbc67b7a --- /dev/null +++ b/util/osx_bundle_fix.sh @@ -0,0 +1,10 @@ +#!/bin/sh +LOCAL_RLIBS=`otool -L GoldenCheetah.app/Contents/MacOS/GoldenCheetah | grep R.framework | awk '{ print $1}'` + +for lib in $LOCAL_RLIBS +do + echo cp $lib GoldenCheetah.app/Contents/MacOS + cp $lib GoldenCheetah.app/Contents/MacOS + echo install_name_tool -change $lib "@executable_path/"`basename $lib` GoldenCheetah.app/Contents/MacOS/GoldenCheetah + install_name_tool -change $lib "@executable_path/"`basename $lib` GoldenCheetah.app/Contents/MacOS/GoldenCheetah +done