Skip to content

Commit 23125fa

Browse files
committed
bundle manually
1 parent 3a3adef commit 23125fa

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/build.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,26 @@ jobs:
118118
run: |
119119
ldd "$APPDIR/usr/bin/${APP_NAME}" || true
120120
121-
- name: Run linuxdeployqt
121+
- name: Bundle Wayland plugins & run linuxdeployqt
122122
run: |
123-
linuxdeployqt "AppDir/usr/share/applications/${APP_NAME}.desktop" -appimage -bundle-non-qt-libs \
124-
-extra-plugins=wayland
123+
APPDIR=AppDir
124+
125+
# Ensure Qt Wayland platform plugins are in AppDir
126+
ls -la cp "$HOME/Qt/${QT_VERSION}/gcc_64/plugins/platforms/"
127+
mkdir -p "$APPDIR/usr/plugins/platforms"
128+
cp "$HOME/Qt/${QT_VERSION}/gcc_64/plugins/platforms/libqwayland"* "$APPDIR/usr/plugins/platforms/" || true
129+
130+
# Copy any Wayland-related Qt libraries
131+
mkdir -p "$APPDIR/usr/lib"
132+
cp -u "$HOME/Qt/${QT_VERSION}/gcc_64/lib/libQt6Wayland"* "$APPDIR/usr/lib/" || true
133+
134+
# Also bundle the xcb plugin (for fallback on X11 hosts)
135+
cp "$HOME/Qt/${QT_VERSION}/gcc_64/plugins/platforms/libqxcb.so" "$APPDIR/usr/plugins/platforms/" || true
136+
137+
# Run linuxdeployqt without relying on -extra-plugins
138+
linuxdeployqt "$APPDIR/usr/share/applications/${APP_NAME}.desktop" \
139+
-appimage -bundle-non-qt-libs
140+
125141
mv ./*.AppImage "${APP_NAME}-${PACKAGE_VERSION}.AppImage"
126142
chmod +x "${APP_NAME}-${PACKAGE_VERSION}.AppImage"
127143

0 commit comments

Comments
 (0)