9 lines
254 B
Batchfile
9 lines
254 B
Batchfile
@echo off
|
|
where pwsh >nul 2>nul
|
|
if errorlevel 1 (
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\prepare-release.ps1" -Publish %*
|
|
) else (
|
|
pwsh -NoProfile -File "%~dp0scripts\prepare-release.ps1" -Publish %*
|
|
)
|
|
exit /b %errorlevel%
|