From 29c6e409404e9eba279bfb206fb3d52254eb7e71 Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Fri, 7 Nov 2025 05:18:16 -0800 Subject: [PATCH] =?UTF-8?q?refactor(copy=5Flibcore):=20=E7=A7=BB=E9=99=A4j?= =?UTF-8?q?q=E5=AE=89=E8=A3=85=E6=AD=A5=E9=AA=A4=E5=B9=B6=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E8=84=9A=E6=9C=AC=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- copy_libcore.bat | 41 +---------------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/copy_libcore.bat b/copy_libcore.bat index ff77b32..97df05d 100644 --- a/copy_libcore.bat +++ b/copy_libcore.bat @@ -22,46 +22,7 @@ for /r %%f in (libcore.dll) do ( if exist "%%f" ( echo ✅ 找到 libcore.dll: %%f copy "%%f" libcore\bin\libcore.dll - goto :install_jq - ) -) -echo ⚠️ 未找到 libcore.dll - -:install_jq -echo 📦 安装 jq... - -:: 创建临时 PowerShell 脚本文件 -echo if (!(Get-Command choco -ErrorAction SilentlyContinue)) { > install_jq.ps1 -echo Set-ExecutionPolicy Bypass -Scope Process -Force; >> install_jq.ps1 -echo [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; >> install_jq.ps1 -echo iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) >> install_jq.ps1 -echo } >> install_jq.ps1 -echo choco install jq -y >> install_jq.ps1 -echo $env:Path = [System.Environment]::GetEnvironmentVariable('Path','Machine') + ';' + [System.Environment]::GetEnvironmentVariable('Path','User') >> install_jq.ps1 -echo jq --version >> install_jq.ps1 - -:: 执行 PowerShell 脚本并捕获输出 -powershell -NoProfile -ExecutionPolicy Bypass -File install_jq.ps1 > install_jq_output.txt 2>&1 -set PS_EXIT=%ERRORLEVEL% - -:: 输出日志以调试 -type install_jq_output.txt -echo PowerShell exit code: %PS_EXIT% - -if %PS_EXIT% neq 0 ( - echo ❌ jq 安装失败 (exit %PS_EXIT%) - del install_jq.ps1 - del install_jq_output.txt - exit /b 1 -) - -:: 清理临时文件 -del install_jq.ps1 -del install_jq_output.txt - -echo ✅ jq 安装成功 - -goto :verify + goto :verify :verify echo.