mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-14 21:57:24 +08:00
🐞 fix: Unable to correctly locate protoc in PATH
This commit is contained in:
@@ -19,8 +19,8 @@ impl WindowsBuild {
|
|||||||
|
|
||||||
let path = env::var_os("PATH").unwrap_or_default();
|
let path = env::var_os("PATH").unwrap_or_default();
|
||||||
for p in env::split_paths(&path) {
|
for p in env::split_paths(&path) {
|
||||||
let p = p.join("protoc");
|
let p = p.join("protoc.exe");
|
||||||
if p.exists() {
|
if p.exists() && p.is_file() {
|
||||||
return Some(p);
|
return Some(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user