mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
OP-1155 OSX Package: chmod SDL and sdlgamepad before running install_name_tool
This commit is contained in:
parent
f5a7345d75
commit
444744c3da
@ -41,6 +41,8 @@ done
|
|||||||
|
|
||||||
echo "Copying SDL"
|
echo "Copying SDL"
|
||||||
cp -a "/Library/Frameworks/SDL.framework" "${APP}/Contents/Frameworks/"
|
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"
|
echo "Changing package identification of SDL"
|
||||||
install_name_tool -id \
|
install_name_tool -id \
|
||||||
@ -50,6 +52,8 @@ install_name_tool -change \
|
|||||||
@rpath/SDL.framework/Versions/A/SDL \
|
@rpath/SDL.framework/Versions/A/SDL \
|
||||||
"@executable_path/../Frameworks/SDL.framework/SDL" \
|
"@executable_path/../Frameworks/SDL.framework/SDL" \
|
||||||
"${APP}/Contents/Plugins/libsdlgamepad.1.dylib"
|
"${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
|
# deleting unnecessary files
|
||||||
echo "Deleting unnecessary files"
|
echo "Deleting unnecessary files"
|
||||||
|
Loading…
Reference in New Issue
Block a user