From b0133083dd4d22b0b7fdee02000ef8ecab26694b Mon Sep 17 00:00:00 2001 From: dswd Date: Mon, 27 Jun 2022 15:36:37 +0200 Subject: [PATCH] Fix appimage creation in container when host has appimagelauncher enabled (#4457) Co-authored-by: Lucas Nogueira --- .changes/appimage-fix.md | 5 +++++ tooling/bundler/src/bundle/linux/templates/appimage | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changes/appimage-fix.md diff --git a/.changes/appimage-fix.md b/.changes/appimage-fix.md new file mode 100644 index 000000000..d4227e516 --- /dev/null +++ b/.changes/appimage-fix.md @@ -0,0 +1,5 @@ +--- +"tauri-bundler": patch +--- + +Fix AppImage bundling when appimagelauncher is enabled. diff --git a/tooling/bundler/src/bundle/linux/templates/appimage b/tooling/bundler/src/bundle/linux/templates/appimage index 7a3ed3880..0a8df9c56 100644 --- a/tooling/bundler/src/bundle/linux/templates/appimage +++ b/tooling/bundler/src/bundle/linux/templates/appimage @@ -68,6 +68,8 @@ wget -q -4 -N -O linuxdeploy-${ARCH}.AppImage https://github.com/linuxdeploy/lin chmod +x linuxdeploy-plugin-gtk.sh chmod +x linuxdeploy-${ARCH}.AppImage +dd if=/dev/zero bs=1 count=3 seek=8 conv=notrunc of=linuxdeploy-${ARCH}.AppImage + OUTPUT="{{appimage_filename}}" ./linuxdeploy-${ARCH}.AppImage --appimage-extract-and-run --appdir "{{app_name}}.AppDir" --plugin gtk ${gst_plugin} --output appimage rm -r "{{app_name}}.AppDir" mv "{{appimage_filename}}" "$OUTDIR"