1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1155 OSX Package: chmod SDL and sdlgamepad before running install_name_tool

This commit is contained in:
a*morale 2014-01-09 20:12:45 +01:00
parent f5a7345d75
commit 444744c3da

View File

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