From 444744c3dab26b9d29fcd4a8662439b9bead2a1b Mon Sep 17 00:00:00 2001 From: a*morale Date: Thu, 9 Jan 2014 20:12:45 +0100 Subject: [PATCH] OP-1155 OSX Package: chmod SDL and sdlgamepad before running install_name_tool --- package/osx/libraries | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/osx/libraries b/package/osx/libraries index 5c091c485..f16fd923e 100755 --- a/package/osx/libraries +++ b/package/osx/libraries @@ -41,6 +41,8 @@ done echo "Copying SDL" cp -a "/Library/Frameworks/SDL.framework" "${APP}/Contents/Frameworks/" +chmod +w "${APP}/Contents/Plugins/libsdlgamepad.1.dylib" +chmod +w "${APP}/Contents/Frameworks/SDL.framework/SDL" echo "Changing package identification of SDL" install_name_tool -id \ @@ -50,6 +52,8 @@ install_name_tool -change \ @rpath/SDL.framework/Versions/A/SDL \ "@executable_path/../Frameworks/SDL.framework/SDL" \ "${APP}/Contents/Plugins/libsdlgamepad.1.dylib" +chmod -w "${APP}/Contents/Plugins/libsdlgamepad.1.dylib" +chmod -w "${APP}/Contents/Frameworks/SDL.framework/SDL" # deleting unnecessary files echo "Deleting unnecessary files"