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

18 lines
582 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 启动失败:系统缺少受信任的 Windows PowerShell。
echo 未创建候选批准,请将此窗口截图交给系统处理。
pause
exit /b 2
)
"%powershell%" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -File "%launcher%" sign
set "result=%ERRORLEVEL%"
echo.
if not "%result%"=="0" echo 签署未完成,未创建新的候选批准。
pause
exit /b %result%