6 changed files with 63 additions and 51 deletions
@ -1,20 +1,12 @@ |
|||||||
#!/bin/sh |
#!/bin/sh |
||||||
# Clean build directories |
cp -r ../../qgroundcontrol-build-desktop/qgroundcontrol.app . |
||||||
rm -rf mac |
|
||||||
mkdir -p mac |
|
||||||
# Change to build directory and compile application |
|
||||||
cd .. |
|
||||||
make -j4 |
|
||||||
# Copy and build the application bundle |
|
||||||
cd deploy |
|
||||||
cp -r ../bin/mac/qgroundcontrol.app mac/. |
|
||||||
|
|
||||||
|
|
||||||
cp -r ../audio mac/qgroundcontrol.app/Contents/MacOs/. |
cp -r ../audio qgroundcontrol.app/Contents/MacOs/. |
||||||
mkdir -p mac/qgroundcontrol.app/Contents/Frameworks/ |
mkdir -p qgroundcontrol.app/Contents/Frameworks/ |
||||||
# SDL is not copied by Qt - for whatever reason |
# SDL is not copied by Qt - for whatever reason |
||||||
cp -r SDL.framework mac/qgroundcontrol.app/Contents/Frameworks/. |
cp -r /Library/Frameworks/SDL.framework qgroundcontrol.app/Contents/Frameworks/. |
||||||
echo -e '\n\nStarting to create disk image. This may take a while..\n' |
echo -e '\n\nStarting to create disk image. This may take a while..\n' |
||||||
macdeployqt mac/qgroundcontrol.app -dmg |
macdeployqt qgroundcontrol.app -dmg |
||||||
rm -rf mac/qgroundcontrol.app |
#rm -rf qgroundcontrol.app |
||||||
echo -e '\n\n QGroundControl .DMG file is now ready for publishing\n' |
echo -e '\n\n QGroundControl .DMG file is now ready for publishing\n' |
||||||
|
Loading…
Reference in new issue