Skip to content

Commit 28dd9ad

Browse files
authored
feat(bundler): support building AppImage without FUSE (#3259)
1 parent b928a6e commit 28dd9ad

3 files changed

Lines changed: 40 additions & 51 deletions

File tree

.changes/bundler-appimage-fuse.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+
Allow building AppImages on systems without FUSE setup.

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,10 @@ wget -q -4 -O linuxdeploy-x86_64.AppImage https://github.com/linuxdeploy/linuxde
3333
chmod +x linuxdeploy-plugin-gtk.sh
3434
chmod +x linuxdeploy-x86_64.AppImage
3535

36-
OUTPUT="{{appimage_filename}}" ./linuxdeploy-x86_64.AppImage --appdir "{{app_name}}.AppDir" --plugin gtk --output appimage
36+
args=()
37+
if ! lsmod | grep -q 'fuse'
38+
then
39+
args+=( '--appimage-extract-and-run' )
40+
fi
41+
42+
OUTPUT="{{appimage_filename}}" ./linuxdeploy-x86_64.AppImage "${args[@]}" --appdir "{{app_name}}.AppDir" --plugin gtk --output appimage

tooling/cli.rs/Cargo.lock

Lines changed: 28 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)