hi-client/copy_libcore.bat

51 lines
1.2 KiB
Batchfile
Raw Permalink 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重命名为 HiFastVPNCli.exe
for /r %%f in (HiddifyCli.exe) do (
if exist "%%f" (
echo ✅ 找到 HiddifyCli.exe: %%f
echo 📝 复制并重命名为 HiFastVPNCli.exe
copy "%%f" libcore\bin\HiFastVPNCli.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\HiFastVPNCli.exe (
if exist libcore\bin\libcore.dll (
echo ✅ 验证成功:所有文件已正确复制
exit /b 0
) else (
echo ❌ 验证失败libcore.dll 不存在
exit /b 1
)
) else (
echo ❌ 验证失败HiFastVPNCli.exe 不存在
exit /b 1
)
) else (
echo ⚠️ libcore\bin 目录不存在
exit /b 1
)