Files
ai-contract-platform/yuqei-infra/scripts/Approve-ReleaseCandidate.cmd
T

18 lines
597 B
Batchfile

@echo off
setlocal
chcp 65001 >nul
set "launcher=%~dp0Launch-ReleaseSigner.ps1"
set "powershell=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe"
if not exist "%powershell%" (
echo Signer startup failed: Windows PowerShell was not found.
echo No candidate approval was created. Send this window to system support.
pause
exit /b 2
)
"%powershell%" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "%launcher%" sign
set "result=%ERRORLEVEL%"
echo.
if not "%result%"=="0" echo Signing did not complete. No new candidate approval was created.
pause
exit /b %result%