Skip to content

Commit ceed5d4

Browse files
committed
update readme installation
1 parent aec7f06 commit ceed5d4

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

README.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -47,39 +47,6 @@ Like `zig build run_minimal`, this will build and run the `minimal` example.
4747

4848
## Installation
4949

50-
### Zig `0.11`
51-
52-
1. Add this to `build.zig.zon`
53-
54-
```zig
55-
.@"zig-webui" = .{
56-
// It is recommended to replace the following branch with commit id
57-
.url = "https://github.com/webui-dev/zig-webui/archive/main.tar.gz",
58-
.hash = <hash value>,
59-
},
60-
```
61-
62-
This tells zig to fetch zig-webui from a tarball provided by GitHub. Make sure to replace the COMMIT part with an actual commit SHA in long form, like `219faa2a5cd5a268a865a1100e92805df4b84610`. Every time you want to update zig-webui you'll have to update this commit.
63-
64-
2. Config `build.zig`
65-
66-
Add this:
67-
68-
```zig
69-
const zig_webui = b.dependency("zig-webui", .{
70-
.target = target,
71-
.optimize = optimize,
72-
.enable_tls = false, // whether enable tls support
73-
.is_static = true, // whether static link
74-
});
75-
76-
// add module
77-
exe.addModule("webui", zig_webui.module("webui"));
78-
79-
// link library
80-
exe.linkLibrary(zig_webui.artifact("webui"));
81-
```
82-
8350
### Zig `0.12` \ `0.13.0` \ `nightly`
8451

8552
> To be honest, I don’t recommend using the nightly version because the API of the build system is not yet stable, which means that there may be problems with not being able to build after nightly is updated.

0 commit comments

Comments
 (0)