#"Embed" website to application
13 messages · Page 1 of 1 (latest)
Simply specify a website in the windows "url" config
Using an external site however comes with limitations, most of which can be circumvented but at the cost of security
I have the following in my main.rs:
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running application");
}
In tauri.conf.json you have the windows: [] config, right? Add url: "https://my-site.com" to one of the windows in there
What should be the devPath, distDir, etc?
Can I just remove build block entirely?
It should be whatever URL your development server is. Don't think you can remove it, but you can at least set all the stuff in there to be blank I suppose
"devPath" cannot be empty
error: proc macro panicked
--> src/main.rs:13:14
|
13 | .run(tauri::generate_context!())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: The `devPath` configuration cannot be empty
error: could not compile `taurus` (bin "taurus") due to previous error
Then set it to your remote url
Just setting it to the URL works 😮
I don't even need to set windows