Bring the AppImage tools into the repo so we don't have to download them from unreliable external locations

This commit is contained in:
Adam Honse 2020-11-09 09:36:36 -06:00
parent 940a71931d
commit ad2bad17e8
6 changed files with 10 additions and 22 deletions

View file

@ -54,26 +54,20 @@ qmake "$REPO_ROOT"
make -j$(nproc)
make install INSTALL_ROOT=AppDir
#-----------------------------------------------------------------------#
# Now, build AppImage using linuxdeploy and linuxdeploy-plugin-qt #
# Download linuxdeploy and its Qt plugin #
#-----------------------------------------------------------------------#
wget https://artifacts.assassinate-you.net/artifactory/linuxdeploy/travis-456/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
#-----------------------------------------------------------------------#
# Make them executable #
#-----------------------------------------------------------------------#
chmod +x linuxdeploy*.AppImage
chmod +x "$REPO_ROOT"/scripts/tools/linuxdeploy*.AppImage
#-----------------------------------------------------------------------#
# Make sure Qt plugin finds QML sources so it can deploy the imported #
# files #
#-----------------------------------------------------------------------#
export QML_SOURCES_PATHS="$REPO_ROOT"/src
./linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir AppDir -e OpenRGB -i "$REPO_ROOT"/qt/OpenRGB.png -d "$REPO_ROOT"/qt/OpenRGB.desktop
./linuxdeploy-plugin-qt-x86_64.AppImage --appimage-extract-and-run --appdir AppDir
./linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir AppDir --output appimage
"$REPO_ROOT"/scripts/tools/linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir AppDir -e OpenRGB -i "$REPO_ROOT"/qt/OpenRGB.png -d "$REPO_ROOT"/qt/OpenRGB.desktop
"$REPO_ROOT"/scripts/tools/linuxdeploy-plugin-qt-x86_64.AppImage --appimage-extract-and-run --appdir AppDir
"$REPO_ROOT"/scripts/tools/linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir AppDir --output appimage
#-----------------------------------------------------------------------#
# Move built AppImage back into original CWD #