-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Closed
Copy link
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug
Description
Describe the bug
When running cargo tauri build the deb is built successfully but building appimage fails with following error:
...
Compiling app v0.1.0 (/y/projects/A-Z/D/dioxus-testing/tauri-bug/src-tauri)
Compiling webkit2gtk v0.18.0
Compiling tauri-runtime v0.10.2
Compiling tauri-runtime-wry v0.10.2
Finished release [optimized] target(s) in 5m 23s
Bundling my-app_0.1.0_amd64.deb (target/release/bundle/deb/my-app_0.1.0_amd64.deb)
Bundling my-app_0.1.0_amd64.AppImage (target/release/bundle/appimage/my-app_0.1.0_amd64.AppImage)
Error failed to bundle project: error running appimage.sh: error running appimage.sh: `No such file or directory (os error 2)`: No such file or directory (os error 2)
Reproduction
$ cargo install tauri-cli
$ mkdir tauri-bug
$ cd tauri-bug
- create `ui/index.html` with contents given in https://tauri.app/v1/guides/getting-started/setup/html-css-js/
$ cargo tauri init
App name : My App
Window title : My Window
Web assets location: ../ui
Dev server URL : ../ui
$ mkdir src-tauri/.cargo
$ echo "build.target-dir = \"target\"" > src-tauri/.cargo/config
$ cargo tauri dev
; succeeds
- change bundle identified in `tauri.conf.json` to "my.test"
$ cargo tauri build
; fails
Note: .cargo/config is because of #4632 to override the global value I have.
Expected behavior
Build should succeed and create appimage file.
Platform and versions
Environment
› OS: Debian 11 X64
› Node.js: 12.22.12
› npm: Not installed!
› pnpm: Not installed!
› yarn: Not installed!
› rustup: 1.25.1
› rustc: 1.63.0
› cargo: 1.63.0
› Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages
WARNING: no lock files found, defaulting to npm
› @tauri-apps/cli [NPM]: 1.0.5
› @tauri-apps/api [NPM]: Not installed!
› tauri [RUST]: 1.0.5,
› tauri-build [RUST]: 1.0.4,
› tao [RUST]: 0.12.2,
› wry [RUST]: 0.19.0,
App
› build-type: bundle
› CSP: unset
› distDir: ../ui
› devPath: ../ui
package.json not found
App directory structure
├─ src-tauri
└─ ui
Stack trace
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug