From 064a009cb42dc3d7118ed05f33f48715de39fe5a Mon Sep 17 00:00:00 2001 From: m1m1sha <18262227804@163.com> Date: Sun, 5 May 2024 12:15:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Unable=20to=20correctly?= =?UTF-8?q?=20locate=20`protoc`=20in=20`PATH`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- easytier/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easytier/build.rs b/easytier/build.rs index f62dc81..f8e4eea 100644 --- a/easytier/build.rs +++ b/easytier/build.rs @@ -19,8 +19,8 @@ impl WindowsBuild { let path = env::var_os("PATH").unwrap_or_default(); for p in env::split_paths(&path) { - let p = p.join("protoc"); - if p.exists() { + let p = p.join("protoc.exe"); + if p.exists() && p.is_file() { return Some(p); } }