forked from mavlink/qgroundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-closes mavlink#2913
- Loading branch information
Showing
5 changed files
with
58 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash -x | ||
|
||
set +e | ||
|
||
# Generate AppImage using the binaries currently provided by the project. | ||
# These require at least GLIBC 2.14, which older distributions might not have. | ||
# On the other hand, 2.14 is not that recent so maybe we can just live with it. | ||
|
||
APP=qgroundcontrol | ||
|
||
mkdir -p /tmp/$APP/$APP.AppDir | ||
cd /tmp/$APP/ | ||
tar xf ${SHADOW_BUILD_DIR}/release/package/qgroundcontrol.tar.bz2 | ||
|
||
wget -c http://ftp.us.debian.org/debian/pool/main/u/udev/udev_175-7.2_amd64.deb | ||
wget -c http://ftp.us.debian.org/debian/pool/main/e/espeak/espeak_1.46.02-2_amd64.deb | ||
wget -c http://ftp.us.debian.org/debian/pool/main/libs/libsdl1.2/libsdl1.2debian_1.2.15-5_amd64.deb | ||
|
||
cd $APP.AppDir/ | ||
|
||
mv ../qgroundcontrol/* . | ||
mv qgroundcontrol-start.sh AppRun | ||
find ../ -name *.deb -exec dpkg -x {} . \; | ||
|
||
# Get icon | ||
cp ${TRAVIS_BUILD_DIR}/resources/icons/qgroundcontrol.png . | ||
|
||
cat > ./qgroundcontrol.desktop <<\EOF | ||
[Desktop Entry] | ||
Type=Application | ||
Name=QGroundControl | ||
GenericName=Ground Control Station | ||
Comment=UAS ground control station | ||
Icon=qgroundcontrol | ||
Exec=AppRun | ||
Terminal=false | ||
Categories=Utility; | ||
Keywords=computer; | ||
EOF | ||
|
||
VERSION=$(strings qgroundcontrol | grep v[0-9*]\.[0-9*]\.[0-9*]-[0-9*] | head -n 1) | ||
|
||
# Go out of AppImage | ||
cd .. | ||
|
||
wget -c "https://github.com/probonopd/AppImageKit/releases/download/5/AppImageAssistant" # (64-bit) | ||
chmod a+x ./AppImageAssistant | ||
mkdir -p ../out | ||
rm ../out/$APP".AppImage" || true | ||
./AppImageAssistant ./$APP.AppDir/ ../out/$APP".AppImage" | ||
|
||
# s3 deploys everything in release/package | ||
cp ../out/$APP".AppImage" ${SHADOW_BUILD_DIR}/release/package/$APP".AppImage" | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.