Decky/scripts/Publish-DeckyRelease.cmd

24 lines
644 B
Batchfile

@echo off
setlocal
title Publish Decky Release
cd /d "%~dp0.."
echo Decky Forgejo release publisher
echo.
echo This creates the Forgejo release, uploads the signed installer,
echo and updates releases/latest.json for Decky's in-app updater.
echo.
powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%~dp0Publish-ForgejoRelease.ps1"
set "DECKY_RESULT=%ERRORLEVEL%"
echo.
if not "%DECKY_RESULT%"=="0" (
echo Publishing failed. The error is shown above.
echo No successful release should be assumed until the script says it was published.
) else (
echo Publishing completed successfully.
)
echo.
pause
exit /b %DECKY_RESULT%