Skip to content

Commit 28dd9ad

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

File tree

3 files changed

+40
-51
lines changed

3 files changed

+40
-51
lines changed

.changes/bundler-appimage-fuse.md

+5
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

+7-1
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

+28-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)