完善 Windows 发布构建与开发证书流程

This commit is contained in:
2026-08-17 09:53:28 +08:00
parent c3a8737fd6
commit 337390f53e
3 changed files with 171 additions and 37 deletions
+4 -1
View File
@@ -9,12 +9,15 @@ for %%A in (%*) do (
if "%ROOT:~-1%"=="\" set "ROOT=%ROOT:~0,-1%"
cd /d "%ROOT%"
set "POWERSHELL_EXE=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe"
if not exist "%POWERSHELL_EXE%" set "POWERSHELL_EXE=powershell.exe"
echo ========================================
echo YMhut Box - WinUI 3 Build
echo ========================================
echo.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%ROOT%\scripts\build-winui.ps1" %*
"%POWERSHELL_EXE%" -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%ROOT%\scripts\build-winui.ps1" %*
set "EXITCODE=%ERRORLEVEL%"
if not "%EXITCODE%"=="0" (
echo.