Skip to content

Commit 172aca3

Browse files
authored
Revise prebuilt libraries usage instructions
Updated instructions for using prebuilt libraries to include commands for fetching packages. Resolves #22
1 parent 6b81d08 commit 172aca3

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,11 @@ pub fn linkSdlLibs(compile_step: *std.Build.Step.Compile) void {
5252
```
5353

5454
### Using prebuilt libraries
55-
NOTE: If you want to use our prebuilt libraries also add the following to your `build.zig.zon`:
56-
```zig
57-
.@"sdl2-prebuilt-macos" = .{
58-
.url = "https://github.com/zig-gamedev/sdl2-prebuilt-macos/archive/f14773fa3de719b3a399b854c31eb4139d63842f.tar.gz",
59-
.hash = "12205cb2da6fb4a7fcf28b9cd27b60aaf12f4d4a55be0260b1ae36eaf93ca5a99f03",
60-
.lazy = true,
61-
},
62-
.@"sdl2-prebuilt-x86_64-windows-gnu" = .{
63-
.url = "https://github.com/zig-gamedev/sdl2-prebuilt-x86_64-windows-gnu/archive/8143e2a5c28dbace399cbff14c3e8749a1afd418.tar.gz",
64-
.hash = "1220ade6b84d06d73bf83cef22c73ec4abc21a6d50b9f48875f348b7942c80dde11b",
65-
.lazy = true,
66-
},
67-
.@"sdl2-prebuilt-x86_64-linux-gnu" = .{
68-
.url = "https://github.com/zig-gamedev/sdl2-prebuilt-x86_64-linux-gnu/archive/2eccc574ad909b0d00b694b10c217a95145c47af.tar.gz",
69-
.hash = "12200ecb91c0596d0356ff39d573af83abcd44fecb27943589f11c2cd172763fea39",
70-
.lazy = true,
71-
},
55+
NOTE: If you want to use our prebuilt libraries also add the following run the following commands from your projects root directory to add the entres to your build.zig.zon and download the packages.
56+
```sh
57+
zig fetch --save git+https://github.com/zig-gamedev/sdl2-prebuilt-x86_64-windows-gnu.git#master
58+
zig fetch --save git+https://github.com/zig-gamedev/sdl2-prebuilt-x86_64-linux-gnu.git#master
59+
zig fetch --save git+https://github.com/zig-gamedev/sdl2-prebuilt-macos.git#master
7260
```
7361

7462
And add the following to your `build.zig`:

0 commit comments

Comments
 (0)