From 2e6cacd39991bb032e0af29ee610fae9863520f0 Mon Sep 17 00:00:00 2001 From: rwzd <142591118+rwzd@users.noreply.github.com> Date: Tue, 2 Jul 2024 21:47:06 +0300 Subject: [PATCH] Modernize Installation Method (#114) * Modernize installation method * tiny spelling fix --- README.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 003d5e6..cf930cf 100755 --- a/README.md +++ b/README.md @@ -59,22 +59,13 @@ To build all available examples simply `zig build examples`. To list available e ### In an existing project (e.g. created with `zig init`) -Create a `build.zig.zon` and add raylib-zig as a dependency like so: +Download and add raylib-zig as a dependency by running the following command in your project root: ``` -.{ - // ... - .dependencies = .{ - .@"raylib-zig" = .{ - .url = "https://github.com/Not-Nik/raylib-zig/archive/devel.tar.gz", - .hash = "12000000000000000000000000000000000000000000000000000000000000000000", // put the actual hash here - }, - }, - // ... -} +zig fetch --save https://github.com/Not-Nik/raylib-zig/archive/devel.tar.gz ``` -Then add raylib-zig as a dependency and import it's modules and artifact in your `build.zig`: +Then add raylib-zig as a dependency and import its modules and artifact in your `build.zig`: ```zig const raylib_dep = b.dependency("raylib-zig", .{