Fix appimage creation in container when host has appimagelauncher enabled (#4457)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
dswd
2022-06-27 15:36:37 +02:00
committed by GitHub
parent 46196fe922
commit b0133083dd
2 changed files with 7 additions and 0 deletions

5
.changes/appimage-fix.md Normal file
View File

@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Fix AppImage bundling when appimagelauncher is enabled.

View File

@@ -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"