wyhaya / tauri-plugin-theme

Dynamically change Tauri App theme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue building on Windows

tyfiero opened this issue · comments

I'm using Tauri v2, Linux and Mac build just fine, but windows gives me the error below. I will create a PR to fix this, all that needs done is on lib.rs, line 41, change for window in &mut config.tauri.windows { to for window in &mut config.windows {, and line 91, change .join(&config.tauri.bundle.identifier) to .join(&config.identifier)

error[E0609]: no field tauri on type &mut tauri::Config
--> C:\Users\runneradmin/.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-plugin-theme-0.4.0\src\lib.rs:41:31
|
41 | for window in &mut config.tauri.windows {
| ^^^^^ unknown field
|
= note: available fields are: schema, product_name, version, identifier, app ... and 3 others

error[E0609]: no field tauri on type &tauri::Config
--> C:\Users\runneradmin/.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-plugin-theme-0.4.0\src\lib.rs:91:27
|
91 | .join(&config.tauri.bundle.identifier)
| ^^^^^ unknown field
|
= note: available fields are: schema, product_name, version, identifier, app ... and 3 others

For more information about this error, try rustc --explain E0609.
error: could not compile tauri-plugin-theme (lib) due to 2 previous errors