Remove unused checks
This commit is contained in:
@@ -6,32 +6,18 @@ setlocal
|
||||
pushd
|
||||
echo Building and packaging Flax Editor...
|
||||
|
||||
rem Make sure the batch file exists in the root folder.
|
||||
if not exist "%~dp0\Source" goto Error_BatchFileInWrongLocation
|
||||
if not exist "Development\Scripts\Windows\CallBuildTool.bat" goto Error_BatchFileInWrongLocation
|
||||
|
||||
rem Run Flax.Build to generate Visual Studio solution and project files (also pass the arguments)
|
||||
rem Run the build tool.
|
||||
call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployEditor -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %*
|
||||
if errorlevel 1 goto Error_BuildToolFailed
|
||||
if errorlevel 1 goto BuildToolFailed
|
||||
|
||||
rem Done.
|
||||
popd
|
||||
echo Done!
|
||||
exit /B 0
|
||||
|
||||
:Error_BatchFileInWrongLocation
|
||||
echo.
|
||||
echo The batch file does not appear to be located in the root directory. This script must be run from within that directory.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Error_BuildToolFailed
|
||||
echo.
|
||||
:BuildToolFailed
|
||||
echo Flax.Build tool failed.
|
||||
echo.
|
||||
goto Exit
|
||||
|
||||
:Exit
|
||||
rem Restore original directory before exit.
|
||||
popd
|
||||
exit /B 1
|
||||
|
||||
Reference in New Issue
Block a user