8 Commits

Author SHA1 Message Date
Krzysztof Wiśniewski
ac76d1ffd6
Move compiler detection to separate scripts (#1573)
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>
2025-06-02 15:50:25 +02:00
IntegratedQuantum
bc02bb0587
Use (an adapted version) of zig fmt to format the source code. (#1140)
* Format all the files

* Fix compilation error.

* The install scripts now patch render.zig from the zig standard library.

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update ci.yml

* Update the formatter, it doesn't need to run on .zig files anymore.

* Update ci.yml

* Update ci.yml

* Add a mistake to check if it works

* IT WORKS!
2025-03-02 16:36:58 +01:00
IntegratedQuantum
30e24c2687 Explicitly specify the path of windows tar.
Some people also have linux tar installed, which of course works differently.

I hate windows.
2025-02-23 11:26:11 +01:00
IntegratedQuantum
801f67408f Use tar in the windows script, hopefully it's more stable than Expand-Archive.
should fix #1015

also removed spaces before "..."
2025-02-07 20:36:15 +01:00
IntegratedQuantum
8987dc4eb0 Pull zig from a github repo instead of relying on ziglang.org, this should be more stable.
fixes #719
2024-09-13 23:55:27 +02:00
Zachary Hall
cf6e9df663
Fix Zig download url (#718)
* Update debug_linux.sh

* Update debug_windows.bat
2024-09-13 22:04:15 +02:00
IntegratedQuantum
d4f9270fa9 Don't call the compiler twice in the scripts.
Zig sometimes doesn't cache stuff correctly.
In the presence of this bug the game might be recompiled in the second compiler command.
This doubled compile times in the worst case.
2024-02-25 10:39:16 +01:00
archbirdplus
fd332139d7
Progress on making compile errors easier to debug for new users: #241, #251, #252 (#254)
* Rename run_release scripts to run_OS (#241)

* Update README with new script names (#241)

* Fix run_windows infinite loop

* Make debug_linux more verbose.

* Make windows script errors match linux

* Automatically set working directory (#252)

* Remote quotes from echo commands in run_windows

* Replace zig run with zig build run

* Replace spaces with tabs in run scripts.

* Make 'Building Cubyz' message more accurate

* Have run scripts check the machine architecture.

* Add failsafe for unrecognized architecture; erase scratch work in debug_windows

* Replace more spaces with tabs in debug_linux

* Linux run script: don't pause if debug build or NO_PAUSE

* Windows run script: do not pause in debug builds or if NO_PAUSE

* Escape a paren

* Fix x64 typo

* Delete logs about failing to build

* Use `call` to call the batch script on windows

Without `call` windows won't execute the lines after calling the batch script.

---------

Co-authored-by: IntegratedQuantum <43880493+IntegratedQuantum@users.noreply.github.com>
2024-01-23 19:02:51 +01:00