Skip to content

[bug] failed to bundle project: error running appimage.sh #5781

@XuJinNet

Description

@XuJinNet

Describe the bug

Build a hello word project, run pnpm tauri build, get a error:

   Compiling serialize-to-javascript v0.1.1
   Compiling serde_repr v0.1.9
   Compiling state v0.5.3
   Compiling webkit2gtk v0.18.2
    Finished release [optimized] target(s) in 2m 14s
    Bundling tauri-app-js_0.0.0_amd64.deb (/home/xujin/My_Projects/learning/learning-tauri/tauri-app-js/src-tauri/target/release/bundle/deb/tauri-app-js_0.0.0_amd64.deb)
    Bundling tauri-app-js_0.0.0_amd64.AppImage (/home/xujin/My_Projects/learning/learning-tauri/tauri-app-js/src-tauri/target/release/bundle/appimage/tauri-app-js_0.0.0_amd64.AppImage)
       Error failed to bundle project: error running appimage.sh: error running appimage.sh: `failed to run /home/xujin/My_Projects/learning/learning-tauri/tauri-app-js/src-tauri/target/release/bundle/appimage/build_appimage.sh`
 ELIFECYCLE  Command failed with exit code 1.

Reproduction

run pnpm tauri build

Expected behavior

Build success.

Platform and versions

Environment
  › OS: Manjaro 22.0.0 X64
  › Node.js: 16.18.1
  › npm: 8.19.2
  › pnpm: 7.18.1
  › yarn: Not installed!
  › rustup: 1.25.1
  › rustc: 1.65.0
  › cargo: 1.65.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu 

Packages
  › @tauri-apps/cli [NPM]: 1.2.1
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.2.1,
  › tauri-build [RUST]: 1.2.1,
  › tao [RUST]: 0.15.6,
  › wry [RUST]: 0.22.6,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:1420/

App directory structure
  ├─ src
  ├─ .vscode
  ├─ src-tauri
  ├─ node_modules
  └─ dist

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📬Proposal

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions