[bug] Tarui v2 Cargo.toml "macos-private-api" feature conflicts with tauri.conf.json macosPrivateApi.
Closed this issue · 2 comments
Describe the bug
In Windows
- Don't add the windows: [] property and 'macosPrivateApi': true throw the Error
Error `tauri.conf.json` error on `app`: Additional properties are not allowed ('macosPrivateApi' was unexpected)
- Don't add the windows: [] property and add 'macosPrivateApi': false throw the Error
The `tauri` dependency features on the `Cargo.toml` file does not match the allowlist defined under `tauri.conf.json`.
Please run `tauri dev` or `tauri build` or remove the `macos-private-api` feature.
I cannot remove the Cargo.toml 'macos-private-api' feature, otherwise I need to re-add it on macOS.
Cargo.toml
tauri = { workspace = true, features = [
"macos-private-api",
] }
tauri.conf.json
"app": {
"macosPrivateApi": true
}
tauri.windows.conf.json
"app": {
"windows": [
{
"decorations": false,
"transparent": true,
"title": "Publish",
"label": "main",
"width": 1160,
"height": 800,
"resizable": true,
"fullscreen": false,
"center": true,
"dragDropEnabled": false,
"windowEffects": {
"effects": [
"mica"
]
}
}
]
}
tauri.macos.conf.json
"app": {
"windows": [
{
"decorations": false,
"transparent": true,
"title": "Publish",
"label": "main",
"width": 1160,
"height": 800,
"resizable": true,
"fullscreen": false,
"center": true,
"dragDropEnabled": false
}
],
"macOSPrivateApi": true
}
Reproduction
No response
Expected behavior
No response
Full tauri info
output
[✔] Environment
- OS: Windows 10.0.22631 x86_64 (X64)
✔ WebView2: 129.0.2792.52
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (overridden by 'C:\Users\Han\Desktop\Publish\publish\rust-toolchain.toml')
- node: 22.5.1
- yarn: 4.2.2
- npm: 10.8.2
[-] Packages
- tauri 🦀: 2.0.0-rc.15
- tauri-build 🦀: 2.0.0-rc.12
- wry 🦀: 0.43.1
- tao 🦀: 0.30.2
- @tauri-apps/api : not installed!
- @tauri-apps/cli : 2.0.0-rc.16
[-] Plugins
- tauri-plugin-fs 🦀: git+https://github.com/tauri-apps/plugins-workspace?branch=v2#04a0aea0ab9f8750200bc2fe5aff99c1c488082d (2.0.0-rc.5)
- @tauri-apps/plugin-fs : not installed!
- tauri-plugin-os 🦀: git+https://github.com/tauri-apps/plugins-workspace?branch=v2#04a0aea0ab9f8750200bc2fe5aff99c1c488082d (2.0.0-rc.1)
- @tauri-apps/plugin-os : not installed!
- tauri-plugin-updater 🦀: git+https://github.com/tauri-apps/plugins-workspace?branch=v2#04a0aea0ab9f8750200bc2fe5aff99c1c488082d (2.0.0-rc.3)
- @tauri-apps/plugin-updater : not installed!
- tauri-plugin-shell 🦀: git+https://github.com/tauri-apps/plugins-workspace?branch=v2#04a0aea0ab9f8750200bc2fe5aff99c1c488082d (2.0.0-rc.3)
- @tauri-apps/plugin-shell : not installed!
- tauri-plugin-http 🦀: git+https://github.com/tauri-apps/plugins-workspace?branch=v2#04a0aea0ab9f8750200bc2fe5aff99c1c488082d (2.0.0-rc.5)
- @tauri-apps/plugin-http : not installed!
- tauri-plugin-autostart 🦀: git+https://github.com/tauri-apps/plugins-workspace?branch=v2#04a0aea0ab9f8750200bc2fe5aff99c1c488082d (2.0.0-rc.1)
- @tauri-apps/plugin-autostart : not installed!
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../../packages/desktop/dist
- devUrl: https://localhost:3000/
Stack trace
No response
Additional context
No response
Additional properties are not allowed ('macosPrivateApi' was unexpected)
It's macOSPrivateApi
, it's case-sensitive. If that doesn't help, please upload a minimal reproduction because it works in my testing (assuming i understood your explanation correctly)
Additional properties are not allowed ('macosPrivateApi' was unexpected)
It's
macOSPrivateApi
, it's case-sensitive. If that doesn't help, please upload a minimal reproduction because it works in my testing (assuming i understood your explanation correctly)
I can't reproduce the issue. Here is my project https://github.com/deskbtm-publish/publish, you could run it by yarn desktop
.