This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::sync::Mutex; | |
use tauri::api::path::data_dir; | |
pub static APP_DATA_DIR: Mutex<String> = Mutex::new(String::new()); | |
fn main() { | |
tauri::Builder::default() | |
.invoke_handler(tauri::generate_handler![]) | |
.setup(|app| { | |
let sys_data_dir = data_dir().unwrap(); |