mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 15:18:32 +08:00
refactor: done
This commit is contained in:
1 parent
ce2d4498e1
commit
bedd3abf8a
24 files changed
+343
-341
No files matched your search
@@ -1,5 +1,5 @@
|
||||
use anyhow::Result;
|
||||
use std::{env::temp_dir, path::PathBuf};
|
||||
use std::path::PathBuf;
|
||||
use tauri::{
|
||||
api::path::{home_dir, resource_dir},
|
||||
Env, PackageInfo,
|
||||
@@ -107,14 +107,6 @@ pub fn profiles_path() -> Result<PathBuf> {
|
||||
Ok(app_home_dir()?.join(PROFILE_YAML))
|
||||
}
|
||||
|
||||
pub fn clash_runtime_yaml() -> Result<PathBuf> {
|
||||
Ok(app_home_dir()?.join("clash-verge-runtime.yaml"))
|
||||
}
|
||||
|
||||
pub fn clash_check_yaml() -> Result<PathBuf> {
|
||||
Ok(temp_dir().join("clash-verge-check.yaml"))
|
||||
}
|
||||
|
||||
pub fn app_res_dir() -> Result<PathBuf> {
|
||||
unsafe {
|
||||
Ok(RESOURCE_DIR
|
||||
|
||||
Reference in new issue
Block a user