Skip to content

Commit ed09f82

Browse files
feat: add GDK_BACKEND=x11 to appimage
1 parent 524add6 commit ed09f82

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,17 @@ jobs:
9292
Categories=Game;Utility;
9393
EOF
9494
95+
# Create AppRun wrapper script to set GDK_BACKEND=x11
96+
cat > AppDir/AppRun << 'EOF'
97+
#!/bin/sh
98+
export GDK_BACKEND=x11
99+
exec "$(dirname "$(readlink -f "$0")")/usr/bin/cele-mod" "$@"
100+
EOF
101+
chmod +x AppDir/AppRun
102+
95103
# Create symlinks
96104
ln -s usr/share/applications/celemod.desktop AppDir/celemod.desktop
97105
ln -s usr/share/icons/hicolor/256x256/apps/celemod.png AppDir/celemod.png
98-
ln -s usr/bin/cele-mod AppDir/AppRun
99106
- name: Build AppImage
100107
run: |
101108
ARCH=x86_64 ./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage || true

0 commit comments

Comments
 (0)