36 Commits
Author SHA1 Message Date
bdnugget d4da446087 Fix emsdk.shell arg in project templates (raylib-zig#331) 2026-05-05 00:08:14 +02:00
Nikolasandhaxsam 3cd4d3179d Bundle raylib artifact with raylib module
Co-authored-by: haxsam <haxsam@pm.me>
2025-10-30 22:21:33 +01:00
Nikolas ed42d5dbdc Cleanup embed paths for emsdk 2025-08-31 16:57:11 +02:00
Nikolas c5d9cf405d Fix project templates (#278) 2025-08-31 16:55:14 +02:00
haxsam b44a355a81 [build.zig]: a concrete approach to build for web 2025-08-31 16:42:21 +02:00
Nikolas 3c33e0469f Format project templates 2025-08-25 15:47:31 +02:00
stanchyk7 492e809dd5 Update project_setup.sh for Zig 0.15.1 2025-08-25 15:43:33 +02:00
Nikolas b7d89cb7b9 Repository move 2025-08-07 21:27:11 +02:00
Maicon Santana 97cb212bf0 remove emrun from emcc to avoid the game to keep calling stdio.html (#238)
* remove emrun from emcc to avoid the game to keep calling stdio.html

* Remove formater

* Add --emrun for examples and templates
2025-06-27 13:24:07 +02:00
Nikolas 9444b5a438 Use zig init in project template 2025-03-06 15:14:45 +01:00
Daniel Koucher Machado de8c2d4585 Automatically include Emscripten headers (#173)
* add emscripten headers

* update func to return error
2024-11-26 20:18:33 +01:00
Jonathan MarlerandNot-Nik 94570c4b60 fix zig fetch command in README (#130)
* fix zig fetch command in README

All URLs within build.zig.zon files must point to archives that never
change.  However, the zig fetch command in the README.md adds a URL
that points to the `devel` git branch whose content changes whenever
the `devel` branch is updated.

I've updated the README a url that zig will resolve to a SHA before it
writes it to the zon file.

* Update template scripts

---------

Co-authored-by: Not-Nik <nik.wipper@gmx.de>
2024-11-25 14:19:38 +01:00
pancelor 6418a87091 Tidying (#150)
create resources folder during project_setup, and link with emscripten

--embed-file complained b/c the directory was empty, so I added
resources/placeholder.txt

I tested project_setup.sh (but not project_setup.ps1) -- the emscripten
build works

also, s/std.builtin.Mode/std.builtin.OptimizeMode
(std.builtin.Mode's source says: "///Deprecated; use OptimizeMode.")
2024-09-28 14:55:09 +02:00
Sebastian Keller e09c34d64d Update project_setup.sh to work with zig 0.13.0 (#105) 2024-06-17 22:45:49 +02:00
Not-Nik c0d07991d1 Merge raymath and rlgl into main raylib module 2024-06-05 22:56:07 +02:00
Not-Nik a0126d15be BREAKING: rename raylib-math module to raymath 2024-05-31 20:27:48 +02:00
Not-Nik 3a18a355e3 Automatically fetch hash in project setup 2024-05-15 22:36:08 +02:00
Not-Nik a85122eabe Update project setup to use raylib-zig's emcc instead of copying it 2024-05-03 22:36:54 +02:00
NikolasandDrum Ogilvie ae751ce82e Bump to Zig 0.12/raylib 5.1-dev (#81)
* Update to Zig 0.12.0 and raylib 5.1-dev

* More build.zig fixes for 0.12

* Get module with target and optimization

* Add examples to build step when compiling for emscripten

* Remove unused function

* Add build.* and emcc.zig to the zon paths (#83)

As per some info found through https://github.com/ziglang/zig/issues/18282,
this is apparently necessary to use this library as a dependency.

Co-authored-by: Drum Ogilvie <me@daogilvie.com>

* Update binding
2024-04-28 23:46:51 +02:00
Not-Nik 8136c8ee92 Update project setup script 2024-04-14 22:47:29 +02:00
Not-Nik 0e9d003926 Set version 2024-04-07 22:54:34 +02:00
Not-Nik 433c170c02 Update project setup script to use raylib-zig as a dependency, instead of cloning the entire repo 2024-04-03 19:37:10 +02:00
Travis Staloch 906f19afc4 fix project_setup.sh for zig version 0.12.0-dev.1849+bb0f7d55e 2024-03-22 19:00:37 -07:00
StalinGD 62010ca3a9 fix wrong getArtifact function invocation in setup script 2024-02-02 16:37:53 +03:00
Blue 977d305714 some final changes 2023-08-16 13:06:02 -06:00
Blue 7d62be63e2 small modification to emscripten build 2023-08-14 00:09:46 -06:00
Blue 1c142efe55 fix project errors 2023-08-14 00:03:25 -06:00
Blue c4de1da7b1 fix issue 2023-08-13 23:53:13 -06:00
Blue de4918cb56 major refactor ohw web build system 2023-08-13 23:52:52 -06:00
Blue 7c296e8667 add updateTargetForWeb back 2023-08-11 11:36:44 -06:00
Blue 7c40bb6176 fix compile error in project setup 2023-08-11 11:00:40 -06:00
Blue 5efb75c291 project buils based on target instead of webexport 2023-08-11 10:57:27 -06:00
Blue 7a0d397baf add web support using Emscripten 2023-08-11 00:44:28 -06:00
Not-Nik ec45e33189 Update project setup script 2023-08-05 20:29:36 +02:00
Jake Chvatal 2282f85003 project_setup.sh: support more unix systems 2023-04-16 23:56:10 +02:00
Not-Nik 1e06706bff Update to 4.5-dev 2023-01-23 22:07:43 +01:00