19 lines
469 B
Batchfile
19 lines
469 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
setlocal
|
|
set "PYTHONUTF8=1"
|
|
cd /d "%~dp0.."
|
|
|
|
if exist "0_application\.venv\Scripts\python.exe" (
|
|
set "DEPLOY_PYTHON=0_application\.venv\Scripts\python.exe"
|
|
) else if exist ".venv\Scripts\python.exe" (
|
|
set "DEPLOY_PYTHON=.venv\Scripts\python.exe"
|
|
) else (
|
|
set "DEPLOY_PYTHON=python"
|
|
)
|
|
|
|
"%DEPLOY_PYTHON%" "1_build-pipeline\deploy.py"
|
|
set "DEPLOY_EXIT_CODE=%ERRORLEVEL%"
|
|
if /I not "%~1"=="--no-pause" pause
|
|
exit /b %DEPLOY_EXIT_CODE%
|