hi-client/copy_libcore.bat
shanshanzhong 8937024241
Some checks failed
Build Windows / ACT Windows Checkout Verification (push) Successful in 7h0m20s
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 19m49s
Build Windows / build (push) Failing after 7h0m33s
fix: 修复批处理文件中的缩进和错误处理逻辑
修正 copy_libcore.bat 中的缩进问题,并添加未找到 libcore.dll 时的错误提示
2025-11-07 06:33:15 -08:00

50 lines
1.2 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo 📋 复制 libcore 文件...
:: 创建目标目录
mkdir libcore\bin >nul 2>&1
:: 查找并复制 HiddifyCli.exe重命名为 BearVPNCli.exe
for /r %%f in (HiddifyCli.exe) do (
if exist "%%f" (
echo ✅ 找到 HiddifyCli.exe: %%f
echo 📝 复制并重命名为 BearVPNCli.exe
copy "%%f" libcore\bin\BearVPNCli.exe
echo ✅ 重命名完成
goto :dll
)
)
echo ⚠️ 未找到 HiddifyCli.exe
:dll
:: 复制 libcore.dll
for /r %%f in (libcore.dll) do (
if exist "%%f" (
echo ✅ 找到 libcore.dll: %%f
copy "%%f" libcore\bin\libcore.dll
goto :verify
)
)
echo ⚠️ 未找到 libcore.dll
:verify
echo.
echo 📄 验证文件:
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
)