mac_create_dmg.sh 605 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
# Clean build directories
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/.
11 12


13
cp -r ../audio mac/qgroundcontrol.app/Contents/MacOs/.
14 15 16 17 18 19
mkdir -p mac/qgroundcontrol.app/Contents/Frameworks/
cp -r SDL.framework mac/qgroundcontrol.app/Contents/Frameworks/.
echo -e '\n\nStarting to create disk image. This may take a while..\n'
macdeployqt mac/qgroundcontrol.app -dmg
rm -rf mac/qgroundcontrol.app
echo -e '\n\n QGroundControl .DMG file is now ready for publishing\n'