Remove unused checks

This commit is contained in:
Wojtek Figat
2020-12-28 10:33:28 +01:00
parent da389eea03
commit cb6179dbb7
5 changed files with 12 additions and 71 deletions

View File

@@ -6,34 +6,18 @@ setlocal
pushd pushd
echo Generating Flax Engine project files... echo Generating Flax Engine project files...
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 Flax.Build to generate Visual Studio solution and project files (also pass the arguments)
call "Development\Scripts\Windows\CallBuildTool.bat" -genproject %* call "Development\Scripts\Windows\CallBuildTool.bat" -genproject %*
if errorlevel 1 goto Error_BuildToolFailed if errorlevel 1 goto BuildToolFailed
rem Done.
popd popd
echo Done! echo Done!
exit /B 0 exit /B 0
:Error_BatchFileInWrongLocation :BuildToolFailed
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.
pause
goto Exit
:Error_BuildToolFailed
echo.
echo Flax.Build tool failed. echo Flax.Build tool failed.
echo.
pause
goto Exit goto Exit
:Exit :Exit
rem Restore original directory before exit.
popd popd
exit /B 1 exit /B 1

View File

@@ -6,32 +6,18 @@ setlocal
pushd pushd
echo Performing the full package... echo Performing the full package...
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 the build tool. rem Run the build tool.
call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployEditor -deployPlatforms -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %* call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployEditor -deployPlatforms -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %*
if errorlevel 1 goto Error_BuildToolFailed if errorlevel 1 goto BuildToolFailed
rem Done.
popd popd
echo Done! echo Done!
exit /B 0 exit /B 0
:Error_BatchFileInWrongLocation :BuildToolFailed
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.
echo Flax.Build tool failed. echo Flax.Build tool failed.
echo.
goto Exit goto Exit
:Exit :Exit
rem Restore original directory before exit.
popd popd
exit /B 1 exit /B 1

View File

@@ -6,32 +6,18 @@ setlocal
pushd pushd
echo Building and packaging Flax Editor... echo Building and packaging Flax Editor...
rem Make sure the batch file exists in the root folder. rem Run the build tool.
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)
call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployEditor -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %* 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 popd
echo Done! echo Done!
exit /B 0 exit /B 0
:Error_BatchFileInWrongLocation :BuildToolFailed
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.
echo Flax.Build tool failed. echo Flax.Build tool failed.
echo.
goto Exit goto Exit
:Exit :Exit
rem Restore original directory before exit.
popd popd
exit /B 1 exit /B 1

View File

@@ -6,32 +6,18 @@ setlocal
pushd pushd
echo Building and packaging platforms data... echo Building and packaging platforms data...
rem Make sure the batch file exists in the root folder. rem Run the build tool.
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)
call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployPlatforms -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %* call "Development\Scripts\Windows\CallBuildTool.bat" -deploy -deployPlatforms -verbose -log -logFile="Cache\Intermediate\PackageLog.txt" %*
if errorlevel 1 goto Error_BuildToolFailed if errorlevel 1 goto BuildToolFailed
rem Done.
popd popd
echo Done! echo Done!
exit /B 0 exit /B 0
:Error_BatchFileInWrongLocation :BuildToolFailed
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.
echo Flax.Build tool failed. echo Flax.Build tool failed.
echo.
goto Exit goto Exit
:Exit :Exit
rem Restore original directory before exit.
popd popd
exit /B 1 exit /B 1

View File

@@ -14,12 +14,12 @@ if not exist "%appdata%\Flax\Versions.txt" (
) )
set EngineLocation=%cd% set EngineLocation=%cd%
find /c "%EngineLocation%" "%appdata%\Flax\Versions.txt" find /c "%EngineLocation%" "%appdata%\Flax\Versions.txt"
if %errorlevel% equ 1 goto notfound if %errorlevel% equ 1 goto NotFound
echo Already registered. echo Already registered.
goto Done goto Done
rem Register the location (append to the end) rem Register the location (append to the end)
:notfound :NotFound
echo Location '%EngineLocation%' is not registered. Adding it to the list of engine versions. echo Location '%EngineLocation%' is not registered. Adding it to the list of engine versions.
echo %EngineLocation%>>"%appdata%\Flax\Versions.txt" echo %EngineLocation%>>"%appdata%\Flax\Versions.txt"
goto Done goto Done
@@ -31,6 +31,5 @@ echo Done!
exit /B 0 exit /B 0
:Exit :Exit
rem Restore original directory before exit.
popd popd
exit /B 1 exit /B 1