-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] productName with "@handle" won't build #5233
Comments
Do you mean changing all
|
I've expected it to go like you said:
|
can you try the fix in #5262, change tauri and tauri-build deps in [build-dependencies]
tauri-build = { git = "https://github.com/tauri-apps/tauri", branch = "fix-namespaced-productname" }
[dependencies]
tauri= { git = "https://github.com/tauri-apps/tauri", branch = "fix-namespaced-productname" } then run |
Btw, this is correctly handled when using
|
It still returns error, but maybe it should not be allowed when the wizard is not allowing it too? My tauri.conf.js{
"build": {
"beforeDevCommand": "",
"beforeBuildCommand": "",
"devPath": "../src",
"distDir": "../src",
"withGlobalTauri": true
},
"package": {
"productName": "@handle/tauri-app",
"version": "0.0.0"
},
"tauri": {
"allowlist": {
"all": true
},
"bundle": {
"active": true,
"category": "DeveloperTool",
"copyright": "",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "cxom.tauri.dev",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": "all",
"windows": {
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
},
"security": {
"csp": null
},
"updater": {
"active": false
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "tauri-app",
"width": 800
}
]
}
} My cargo.toml[package]
name = "tauri-app"
version = "0.0.0"
description = "A Tauri App"
authors = ["you"]
license = ""
repository = ""
edition = "2021"
rust-version = "1.57"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[build-dependencies]
tauri-build = { git = "https://github.com/tauri-apps/tauri", branch = "fix-namespaced-productname", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri= { git = "https://github.com/tauri-apps/tauri", branch = "fix-namespaced-productname", features = ["api-all"] }
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = [ "custom-protocol" ]
# this feature is used used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]
Build log
|
oh my bad, this bug was in the cli so you only need to
but after some more testing I found that having any of the following in |
Describe the bug
If the productName contains
/
, it won't build.in
tauri.conf.json
It 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
The text was updated successfully, but these errors were encountered: