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
This commit is contained in:
Mark Liversedge
2016-04-30 21:44:37 +01:00
parent 7bc92303c1
commit 8fb1d51dfd

10
util/osx_bundle_fix.sh Executable file
View File

@@ -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