mac_create_dmg.sh 757 Bytes
Newer Older
1
#!/bin/sh
2
cp -r ../../qgroundcontrol-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Release/qgroundcontrol.app .
3 4


5
cp -r ../files/audio qgroundcontrol.app/Contents/MacOs/.
6
mkdir -p qgroundcontrol.app/Contents/Frameworks/
7 8 9
mkdir -p qgroundcontrol.app/Contents/PlugIns/imageformats
mkdir -p qgroundcontrol.app/Contents/PlugIns/codecs
mkdir -p qgroundcontrol.app/Contents/PlugIns/accessible
10
# SDL is not copied by Qt - for whatever reason
11
cp -r /Library/Frameworks/SDL.framework qgroundcontrol.app/Contents/Frameworks/.
12
echo -e '\n\nStarting to create disk image. This may take a while..\n'
13
$HOME/QtSDK/Desktop/Qt/4.8.1/gcc/bin/macdeployqt qgroundcontrol.app -dmg
lm's avatar
lm committed
14
rm -rf qgroundcontrol.app
15
echo -e '\n\n QGroundControl .DMG file is now ready for publishing\n'