hi-client/copy_libcore.bat
shanshanzhong b47e0e984e ci(workflow): 用批处理脚本替换powershell脚本复制libcore文件
简化CI流程中的文件复制操作,使用更简洁的批处理脚本替代原有的powershell脚本
2025-11-07 00:39:16 -08:00

33 lines
810 B
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 else echo ⚠️ libcore\bin 目录不存在