mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 12:08:42 +08:00
feat: use resources dir to save files
This commit is contained in:
1 parent
3b1a816b3b
commit
1500162a9c
6 files changed
+76
-81
No files matched your search
@@ -16,12 +16,6 @@ use tauri::{
|
||||
};
|
||||
|
||||
fn main() -> std::io::Result<()> {
|
||||
init::init_app();
|
||||
// clash::run_clash_bin();
|
||||
|
||||
// 通过clash config初始化menu和tray
|
||||
// 通过verge config干点别的
|
||||
|
||||
let sub_menu = SystemTraySubmenu::new(
|
||||
"出站规则",
|
||||
SystemTrayMenu::new()
|
||||
@@ -66,6 +60,13 @@ fn main() -> std::io::Result<()> {
|
||||
.build(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
|
||||
// init app config
|
||||
init::init_app(app.package_info());
|
||||
// clash::run_clash_bin();
|
||||
|
||||
// 通过clash config初始化menu和tray
|
||||
// 通过verge config干点别的
|
||||
|
||||
app.run(|app_handle, e| match e {
|
||||
tauri::Event::CloseRequested { label, api, .. } => {
|
||||
let app_handle = app_handle.clone();
|
||||
|
||||
Reference in new issue
Block a user