From 41e6ed433a746c528782ea5ca456356c96c05604 Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Fri, 7 Nov 2025 01:17:23 -0800 Subject: [PATCH] =?UTF-8?q?fix(copy=5Flibcore.bat):=20=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=AA=8C=E8=AF=81=E9=80=BB=E8=BE=91=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加对 BearVPNCli.exe 和 libcore.dll 的检查,并在验证失败时返回错误码 --- copy_libcore.bat | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/copy_libcore.bat b/copy_libcore.bat index df70e46..e06d88e 100644 --- a/copy_libcore.bat +++ b/copy_libcore.bat @@ -30,4 +30,21 @@ echo ⚠️ 未找到 libcore.dll echo. echo 📄 验证文件: -if exist libcore\bin dir libcore\bin else echo ⚠️ libcore\bin 目录不存在 \ No newline at end of file +if exist libcore\bin ( + dir libcore\bin + if exist libcore\bin\BearVPNCli.exe ( + if exist libcore\bin\libcore.dll ( + echo ✅ 验证成功:所有文件已正确复制 + exit /b 0 + ) else ( + echo ❌ 验证失败:libcore.dll 不存在 + exit /b 1 + ) + ) else ( + echo ❌ 验证失败:BearVPNCli.exe 不存在 + exit /b 1 + ) +) else ( + echo ⚠️ libcore\bin 目录不存在 + exit /b 1 +) \ No newline at end of file