22 lines
642 B
Batchfile
22 lines
642 B
Batchfile
@echo off
|
|
REM VAV1 Player Build Script for Windows Command Prompt
|
|
REM This is a simple wrapper that calls the PowerShell build script
|
|
|
|
setlocal enabledelayedexpansion
|
|
|
|
set "SCRIPT_DIR=%~dp0"
|
|
set "PS_SCRIPT=%SCRIPT_DIR%build.ps1"
|
|
|
|
REM Check if PowerShell is available
|
|
powershell -Command "exit 0" >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo ERROR: PowerShell is not available or not in PATH.
|
|
echo Please install PowerShell or use the PowerShell script directly.
|
|
exit /b 1
|
|
)
|
|
|
|
REM Pass all arguments to the PowerShell script
|
|
echo Calling PowerShell build script...
|
|
powershell -ExecutionPolicy Bypass -File "%PS_SCRIPT%" %*
|
|
|
|
exit /b %errorlevel% |