You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
347 B
Batchfile

@echo off
setlocal
REM Wrapper to run export.ps1 with double-click or CLI
set SCRIPT_DIR=%~dp0
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%export.ps1" %*
set EXITCODE=%ERRORLEVEL%
if %EXITCODE% NEQ 0 (
echo Export failed. Exit code %EXITCODE%.
exit /b %EXITCODE%
)
echo Archive created. Check the dist\ folder.
endlocal