Skip to content

Commit b013308

Browse files
dswdlucasfernog
andauthored
Fix appimage creation in container when host has appimagelauncher enabled (#4457)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 46196fe commit b013308

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changes/appimage-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Fix AppImage bundling when appimagelauncher is enabled.

tooling/bundler/src/bundle/linux/templates/appimage

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ wget -q -4 -N -O linuxdeploy-${ARCH}.AppImage https://github.com/linuxdeploy/lin
6868
chmod +x linuxdeploy-plugin-gtk.sh
6969
chmod +x linuxdeploy-${ARCH}.AppImage
7070

71+
dd if=/dev/zero bs=1 count=3 seek=8 conv=notrunc of=linuxdeploy-${ARCH}.AppImage
72+
7173
OUTPUT="{{appimage_filename}}" ./linuxdeploy-${ARCH}.AppImage --appimage-extract-and-run --appdir "{{app_name}}.AppDir" --plugin gtk ${gst_plugin} --output appimage
7274
rm -r "{{app_name}}.AppDir"
7375
mv "{{appimage_filename}}" "$OUTDIR"

0 commit comments

Comments
 (0)