mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00

This will allow for Cubyz Dev Kit to install compiler without building the project itself. --------- Co-authored-by: IntegratedQuantum <43880493+IntegratedQuantum@users.noreply.github.com>
28 lines
367 B
Bash
Executable File
28 lines
367 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
fail () {
|
|
exit 1
|
|
}
|
|
|
|
if ! ./scripts/install_compiler_linux.sh
|
|
then
|
|
echo Failed to install Zig compiler.
|
|
fail
|
|
fi
|
|
|
|
echo "Building Zig Cubyz ($@) from source. This may take a few minutes..."
|
|
|
|
./compiler/zig/zig build "$@"
|
|
|
|
if [ $? != 0 ]
|
|
then
|
|
fail
|
|
fi
|
|
|
|
echo "Cubyz successfully built!"
|
|
echo "Launching Cubyz."
|
|
|
|
./zig-out/bin/Cubyzig
|