[bug] Error failed to bundle project: error running appimage.sh
chenlvzhou opened this issue · 6 comments
Describe the bug
Operation steps:
1 . "targets": ["deb","updater", "appimage"],
2. npm run tauri build
result:
Finished release
profile [optimized] target(s) in 1m 10s
Warn Signing, by default, is only supported on Windows hosts, but you can specify a custom signing command in bundler > windows > sign_command
, for now, skipping signing the installer...
Bundling pt-system-student_1.0.0_amd64.deb (path/src-tauri/target/release/bundle/deb/test_1.0.0_amd64.deb)
Bundling pt-system-student_1.0.0_amd64.AppImage (path/src-tauri/target/release/bundle/appimage/test_1.0.0_amd64.AppImage)
Error failed to bundle project: error running appimage.sh
Reproduction
No response
Expected behavior
No response
Full tauri info
output
> mock_student@0.0.0 tauri
> tauri info
[✔] Environment
- OS: Ubuntu 18.4.0 X64
✔ webkit2gtk-4.0: 2.32.4
✔ rsvg2: 2.40.20
✔ rustc: 1.83.0 (90b35a623 2024-11-26)
✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 16.20.2
- pnpm: 8.15.9
- npm: 8.19.4
[-] Packages
- tauri [RUST]: 1.5.4
- tauri-build [RUST]: 1.5.1
- wry [RUST]: 0.24.7
- tao [RUST]: 0.16.5
- @tauri-apps/api [NPM]: 1.6.0 (outdated, latest: 2.1.1)
- @tauri-apps/cli [NPM]: 1.6.3 (outdated, latest: 2.1.0)
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:1421/
- framework: Vue.js
- bundler: Vite
Stack trace
No response
Additional context
No response
Please share the logs you get when running it like this npm run tauri build -- --verbose
Debug [handlebars::render] Rendering value: Path(Relative(([Named("categories")], "categories")))
Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("comment"), value: Context(String("PtExamSystem(Student)"), ["comment"]) }], hash: {}
Debug [handlebars::render] Rendering value: Path(Relative(([Named("comment")], "comment")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("exec")], "exec")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("icon")], "icon")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("name")], "name")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("categories")], "categories")))
Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("comment"), value: Context(String("PtExamSystem(Student)"), ["comment"]) }], hash: {}
Debug [handlebars::render] Rendering value: Path(Relative(([Named("comment")], "comment")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("exec")], "exec")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("icon")], "icon")))
Debug [handlebars::render] Rendering value: Path(Relative(([Named("name")], "name")))
Error [tauri_cli_node] failed to bundle project: Permission denied (os error 13)
@FabianLars This is a log, but I successfully ran the script (sudo /path/build_appimage.sh)
chmod: .cache/tauri/linuxdeploy-plugin-gtk.sh' no permission
@FabianLars
run command (npm run tauri build), Query the information of the corresponding file:
-rwxr-xr-x 1 root root 11648 12月18日 11:09 linuxdeploy-plugin-gtk.sh
-rwxr-xr-x 1 root root 13264064 12月19日 09:07 linuxdeploy-x86_64.AppImage
hmm that's weird. i can't really think of a reason how that could happen as long as you're the owner of your own home dir 🤔
- export ARCH=x86_64
- ARCH=x86_64
- APPIMAGE_BUNDLE_XDG_OPEN=1
- APPIMAGE_BUNDLE_GSTREAMER=0
- TRAY_LIBRARY_PATH=0
- '[' x86_64 == i686 ']'
- linuxdeploy_arch=x86_64
- mkdir -p pt-system-student.AppDir
- cp -r ../appimage_deb/data/usr pt-system-student.AppDir
- cd pt-system-student.AppDir
- mkdir -p usr/bin
- mkdir -p usr/lib
Copying /usr/bin/xdg-open - [[ 1 != \0 ]]
- [[ -f /usr/bin/xdg-open ]]
- echo 'Copying /usr/bin/xdg-open'
- cp /usr/bin/xdg-open usr/bin
- [[ 0 != \0 ]]
++ dirname '{}' - find -L /usr/lib /usr/libexec -name WebKitNetworkProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: ‘/usr/lib/ssl/private’: Permission denied - true
++ dirname '{}' - find -L /usr/lib /usr/libexec -name WebKitWebProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: ‘/usr/lib/ssl/private’: Permission denied - true
++ dirname '{}' - find -L /usr/lib /usr/libexec -name libwebkit2gtkinjectedbundle.so -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
find: ‘/usr/lib/ssl/private’: Permission denied - true
- cd /home/abel/.cache/tauri
- wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64
- chmod +x /home/abel/.cache/tauri/AppRun-x86_64
- cp /home/abel/.cache/tauri/AppRun-x86_64 AppRun
- cp usr/share/icons/hicolor/256x256@2/apps/pt-system-student.png .DirIcon
- ln -sf usr/share/icons/hicolor/256x256@2/apps/pt-system-student.png pt-system-student.png
- ln -sf usr/share/applications/pt-system-student.desktop pt-system-student.desktop
- cd ..
- [[ 0 != \0 ]]
- gst_plugin=
- cd /home/abel/.cache/tauri
- wget -q -4 -N https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
Error [tauri_cli_node] failed to bundle project: error running appimage.sh