mirror of
https://github.com/black-ant/Ant-Browser.git
synced 2026-07-14 18:48:55 +08:00
channel: master version: 1.1.0 source-ref: master published-at-utc: 2026-03-20T14:14:07Z
23 lines
552 B
Batchfile
23 lines
552 B
Batchfile
@echo off
|
|
setlocal EnableExtensions
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
if not exist "%SCRIPT_DIR%build.ps1" (
|
|
echo [ERROR] Missing bat\build.ps1
|
|
if /I not "%NO_PAUSE%"=="1" if /I not "%CI%"=="1" pause
|
|
endlocal & exit /b 1
|
|
)
|
|
powershell -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%build.ps1" %*
|
|
set "EXIT_CODE=%ERRORLEVEL%"
|
|
|
|
echo.
|
|
if "%EXIT_CODE%"=="0" (
|
|
echo Build finished successfully.
|
|
) else (
|
|
echo Build failed with exit code %EXIT_CODE%.
|
|
)
|
|
|
|
if /I not "%NO_PAUSE%"=="1" if /I not "%CI%"=="1" pause
|
|
|
|
endlocal & exit /b %EXIT_CODE%
|