Skip to content

Commit 6f00f9e

Browse files
committed
Fix build error: install qmake for linuxdeploy-plugin-qt
- Install qtbase5-dev and related tools on the Ubuntu runner. - Set QMAKE environment variable to ensure the Qt plugin can find it. - This ensures all necessary input libraries are bundled into the AppImage to prevent crashes.
1 parent 5af302c commit 6f00f9e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build_and_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,16 @@ jobs:
151151
cp AppDir/knowemail.png AppDir/.DirIcon
152152
153153
# --- AppImage ---
154-
# --- AppImage ---
154+
sudo apt-get update
155+
sudo apt-get install -y qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
156+
155157
wget -q https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
156158
wget -q https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
157159
chmod +x linuxdeploy-x86_64.AppImage linuxdeploy-plugin-qt-x86_64.AppImage
158160
159161
# Run linuxdeploy with Qt plugin
160-
# We export the plugin path just in case, though usually it finds it in CWD
161162
export PATH=$(pwd):$PATH
163+
export QMAKE=/usr/lib/qt5/bin/qmake
162164
./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt --output appimage
163165
164166
# Move and Rename AppImage

0 commit comments

Comments
 (0)