From a1f2a621ef0b48a3fa34a13ad7529b3995bc514c Mon Sep 17 00:00:00 2001 From: huzibaca Date: Sun, 1 Dec 2024 09:38:29 +0800 Subject: [PATCH] fix: resource file initialization failed --- src-tauri/src/utils/init.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src-tauri/src/utils/init.rs b/src-tauri/src/utils/init.rs index 1cb509ea..b46d1d0c 100644 --- a/src-tauri/src/utils/init.rs +++ b/src-tauri/src/utils/init.rs @@ -193,12 +193,7 @@ pub fn init_resources() -> Result<()> { let _ = fs::create_dir_all(&res_dir); } - #[cfg(target_os = "windows")] let file_list = ["Country.mmdb", "geoip.dat", "geosite.dat"]; - #[cfg(target_os = "macos")] - let file_list = ["Country.mmdb", "geoip.dat", "geosite.dat"]; - #[cfg(target_os = "linux")] - let file_list: [&str; 0] = []; // copy the resource file // if the source file is newer than the destination file, copy it over