Skip to content

Commit

Permalink
Update Linux AppImage to use Qt 6.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Jan 5, 2025
1 parent d30b210 commit 92a8bb1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
strategy:
matrix:
include:
- runner: 'ubuntu-20.04'
qtVersion: '5.15.2'
- runner: 'ubuntu-22.04'
qtVersion: '6.8.1'
qtModules: 'qtimageformats'
buildArch: 'X64'
- runner: 'macos-14'
qtVersion: '6.8.1'
Expand Down
34 changes: 14 additions & 20 deletions dist/scripts/linuxdeployqt.sh
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
#!/usr/bin/bash

wget 'https://sourceforge.net/projects/qt5ct/files/latest/download'
tar xf download
cd qt5ct*
qmake
sudo make install
cd ..

if [ $1 != "" ]; then
VERSION=$1
else
VERSION=$(LC_ALL=C sed -n -e '/^VERSION/p' qView.pro)
VERSION=${VERSION: -3}
if [[ -z "$1" ]]; then
RELEASE_VER=$(LC_ALL=C sed -n -e '/^VERSION/p' qView.pro)
RELEASE_VER=${RELEASE_VER: -3}
fi

# echo VERSION was set to $VERSION
# if [[ $2 == *"-extra-plugins"* ]]; then
# PLUGINS=$2
# fi
sudo apt update
sudo apt install libfuse2

wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
wget -c -nv "https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage"
chmod a+x linuxdeploy-*.AppImage

mkdir -p bin/appdir/usr
make install INSTALL_ROOT=bin/appdir
cp dist/linux/hicolor/scalable/apps/com.interversehq.qView.svg bin/appdir/
cd bin
rm qview
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
../linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/com.interversehq.qView.desktop -appimage -updateinformation="gh-releases-zsync|jurplel|qView|latest|qView-*x86_64.AppImage.zsync" -extra-plugins=styles/libqt5ct-style.so,platformthemes/libqt5ct.so
../linuxdeploy-x86_64.AppImage \
--plugin qt \
--appdir appdir \
--desktop-file appdir/usr/share/applications/com.interversehq.qView.desktop \
--output appimage

if [ $1 != "" ]; then
mv *.AppImage qView-JDP-$1-Linux_x86_64.AppImage
else
mv *.AppImage qView-JDP-$VERSION-Linux_x86_64.AppImage
mv *.AppImage qView-JDP-$RELEASE_VER-Linux_x86_64.AppImage
fi
rm -r appdir

0 comments on commit 92a8bb1

Please sign in to comment.