mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-02 18:57:10 -04:00
23 lines
373 B
Batchfile
23 lines
373 B
Batchfile
@echo off
|
|
|
|
cd /D "%~dp0"
|
|
|
|
call scripts\install_compiler_windows.bat
|
|
if errorlevel 1 (
|
|
echo Failed to install Zig compiler.
|
|
exit /b 1
|
|
)
|
|
|
|
echo Building Zig Cubyz (%*^) from source. This may take a few minutes...
|
|
|
|
compiler\zig\zig build --prominent-compile-errors %*
|
|
|
|
if errorlevel 1 (
|
|
exit /b 1
|
|
)
|
|
|
|
echo Cubyz successfully built!
|
|
echo Launching Cubyz.
|
|
|
|
zig-out\bin\Cubyzig
|