Skip to content

Commit

Permalink
fix: resource file initialization failed
Browse files Browse the repository at this point in the history
  • Loading branch information
huzibaca committed Dec 1, 2024
1 parent f7d5be7 commit 0bb8786
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src-tauri/src/utils/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bb8786

Please sign in to comment.