From 1d60c2363b81fecbd9eadb4658ed0b1f98491132 Mon Sep 17 00:00:00 2001 From: uye <99072975+ABA2396@users.noreply.github.com> Date: Wed, 6 May 2026 00:37:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=20global.json=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=88=9B=E5=BB=BA=E6=97=B6=E6=9C=BA=20[skip?= =?UTF-8?q?=20changelog]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/local-install.bat | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/local-install.bat b/tools/local-install.bat index 06663ad5bb..84b0d7c9bc 100644 --- a/tools/local-install.bat +++ b/tools/local-install.bat @@ -3,6 +3,13 @@ setlocal pushd "%~dp0.." || exit /b 1 +if exist ".\global.json" ( + echo global.json already exists, backing it up temporarily + move /y ".\global.json" ".\global.json.local-install.bak" >nul || goto :error +) + +> ".\global.json" echo {"sdk":{"version":"10.0.203","rollForward":"disable"}} || goto :error + set "netbeauty_bin=%NUGET_PACKAGES%\nulastudio.netbeauty\2.1.5\tools\win-x86\nbeauty2.exe" if "%NUGET_PACKAGES%"=="" set "netbeauty_bin=%USERPROFILE%\.nuget\packages\nulastudio.netbeauty\2.1.5\tools\win-x86\nbeauty2.exe" @@ -15,13 +22,6 @@ cmake --build build --config RelWithDebInfo --parallel %NUMBER_OF_PROCESSORS% || cmake --build build --target MAA.Updater --config RelWithDebInfo || goto :error cmake --install build --config RelWithDebInfo --prefix install || goto :error -if exist ".\global.json" ( - echo global.json already exists, backing it up temporarily - move /y ".\global.json" ".\global.json.local-install.bak" >nul || goto :error -) - -> ".\global.json" echo {"sdk":{"version":"10.0.203","rollForward":"disable"}} || goto :error - dotnet restore src/MaaWpfGui/MaaWpfGui.csproj || goto :error dotnet publish src/MaaWpfGui/MaaWpfGui.csproj -c Release -r win-x64 -o install /p:DisableBeauty=True || goto :error