mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:33:45 +08:00
feat: add wintun.dll by default
This commit is contained in:
parent
5fed443476
commit
46a9023782
@ -87,4 +87,14 @@ pub fn init_app(package_info: &PackageInfo) {
|
|||||||
if !mmdb_path.exists() && mmdb_tmpl.exists() {
|
if !mmdb_path.exists() && mmdb_tmpl.exists() {
|
||||||
fs::copy(mmdb_tmpl, mmdb_path).unwrap();
|
fs::copy(mmdb_tmpl, mmdb_path).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// copy the wintun.dll
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
{
|
||||||
|
let wintun_path = app_dir.join("wintun.dll");
|
||||||
|
let wintun_tmpl = res_dir.join("wintun.dll");
|
||||||
|
if !wintun_path.exists() && wintun_tmpl.exists() {
|
||||||
|
fs::copy(wintun_tmpl, wintun_path).unwrap();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user