Hi, I would like the state to hold a multidimensional array. The initial state should be initialized from a default file that is embedded as an additional resource (https://tauri.app/v1/guides/building/resources).
How can I achieve that?
tauri::app::Builder::setup doesn't seem to provide a way to extract the data from it:
pub fn setup<F>(self, setup: F) -> Self
where
F: FnOnce(&mut App<R>) -> Result<(), Box<dyn std::error::Error>> + Send + 'static,
Theoretically, I could try to copy the resource into tauri::api::path::app_data_dir(&context.config()).unwrap() but it looks like a very weird way to accomplish what I want.