feat: update tauri version

This commit is contained in:
GyDi
2022-02-13 18:45:03 +08:00
parent 0db1872bd2
commit d7a1b974cd
8 changed files with 1344 additions and 3504 deletions

View File

@@ -1,7 +1,7 @@
use std::path::{Path, PathBuf};
use tauri::{
api::path::{home_dir, resource_dir},
PackageInfo,
Env, PackageInfo,
};
/// get the verge app home dir
@@ -14,5 +14,7 @@ pub fn app_home_dir() -> PathBuf {
/// get the resources dir
pub fn app_resources_dir(package_info: &PackageInfo) -> PathBuf {
resource_dir(package_info).unwrap().join("resources")
resource_dir(package_info, &Env::default())
.unwrap()
.join("resources")
}