Describe the bug
If the productName contains /, it won't build.
"package": {
"productName": "@test/test-app",
in tauri.conf.json
It results in the following error:
Error failed to rename `/Users/xxx/Documents/dev/xxx/src-tauri/target/release/app` to `/Users/xxx/Documents/dev/xxx/src-tauri/target/release/@test/test-app`: No such file or directory (os error 2)
Reproduction
- Create project
- Name it with so it starts with
@test/
- build it
Expected behavior
After build, app name should be correctly handled by escaping / inside the productName
Platform and versions
Environment
› OS: Mac OS 12.6.0 X64
› Node.js: 16.17.0
› npm: 8.15.0
› pnpm: 7.11.0
› yarn: 1.22.17
› rustup: 1.25.1
› rustc: 1.63.0
› cargo: 1.63.0
› Rust toolchain: stable-aarch64-apple-darwin
Packages
› @tauri-apps/cli [NPM]: 1.1.1
› @tauri-apps/api [NPM]: 1.1.0
› tauri [RUST]: 1.1.1,
› tauri-build [RUST]: 1.1.1,
› tao [RUST]: 0.14.0,
› wry [RUST]: 0.21.1,
App
› build-type: bundle
› CSP: unset
› distDir: ../build
› devPath: http://localhost:10001/
› bundler: Rollup
App directory structure
├─ dev-build
├─ out
├─ node_modules
├─ public
├─ src-tauri
├─ build
├─ .git
├─ raw
└─ src
Stack trace
thread '<unnamed>' panicked at 'failed to rename app: failed to rename `/Users/kacper/Documents/dev/plu-v2-web/src-tauri/target/debug/app` to `/Users/kacper/Documents/dev/plu-v2-web/src-tauri/target/debug/@test/test-app`
Caused by:
No such file or directory (os error 2)', src/interface/rust/desktop.rs:41:58
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Additional context
tauri info reports X64, but I'm running M1
Describe the bug
If the productName contains
/, it won't build.in
tauri.conf.jsonIt results in the following error:
Reproduction
@test/Expected behavior
After build, app name should be correctly handled by escaping
/inside the productNamePlatform and versions
Environment
› OS: Mac OS 12.6.0 X64
› Node.js: 16.17.0
› npm: 8.15.0
› pnpm: 7.11.0
› yarn: 1.22.17
› rustup: 1.25.1
› rustc: 1.63.0
› cargo: 1.63.0
› Rust toolchain: stable-aarch64-apple-darwin
Packages
› @tauri-apps/cli [NPM]: 1.1.1
› @tauri-apps/api [NPM]: 1.1.0
› tauri [RUST]: 1.1.1,
› tauri-build [RUST]: 1.1.1,
› tao [RUST]: 0.14.0,
› wry [RUST]: 0.21.1,
App
› build-type: bundle
› CSP: unset
› distDir: ../build
› devPath: http://localhost:10001/
› bundler: Rollup
App directory structure
├─ dev-build
├─ out
├─ node_modules
├─ public
├─ src-tauri
├─ build
├─ .git
├─ raw
└─ src
Stack trace
Additional context
tauri info reports X64, but I'm running M1