#Specifying the target OS for cross platform compilation
4 messages · Page 1 of 1 (latest)
was able to solve this by simply removing the code above
Note that removing that code will have side effects on Windows as noted in the docs (https://tauri.app/v1/guides/getting-started/setup/integrate/#create-the-rust-project):
it disables the command prompt window that would normally pop up on Windows if you run a bundled app.
It shouldn't have any impact on code compiled for Linux as the all(not(debug_assertions), target_os = "windows") is a compilation flag that indicates the code should only be included in Windows release (sometimes called production) builds. You can read more about this behaviour in Rust's docs (https://doc.rust-lang.org/reference/conditional-compilation.html#the-cfg_attr-attribute).