@@ -51,12 +51,13 @@ Prerequisites:
51
51
52
52
- Knowledge of using the command-line for your OS (e.g. Terminal.app, Command Prompt, etc.)
53
53
- [ Go] ( https://go.dev/dl/ ) 1.24.0 or later.
54
+ - [ Node.js] ( https://nodejs.org/ ) 22.
54
55
55
56
### Linux
56
57
57
58
1 . ` sudo mkdir /zb && sudo chown $(id -u):$(id -g) /zb `
58
59
2 . Clone this repository to your computer and ` cd ` into it.
59
- 3 . ` go build ./cmd/zb `
60
+ 3 . ` go generate ./internal/ui && go build ./cmd/zb `
60
61
4 . Start the build server (only on startup): ` ./zb serve --sandbox=0 & `
61
62
5 . Run a build: ` ./zb build --file demo/hello_linux.lua `
62
63
@@ -66,7 +67,7 @@ You can use `./zb --help` to get more information on commands.
66
67
67
68
1 . ` mkdir $HOME/zb `
68
69
2 . Clone this repository to your computer and ` cd ` into it.
69
- 3 . ` go build ./cmd/zb `
70
+ 3 . ` go generate ./internal/ui && go build ./cmd/zb `
70
71
4 . ` export ZB_STORE_DIR="$HOME/zb/store" ZB_STORE_SOCKET="$HOME/zb/var/zb/server.sock" `
71
72
5 . Start the build server (only on startup): ` ./zb serve --sandbox=0 --db="$HOME/zb/var/zb/db.sqlite" & `
72
73
6 . Run a build: ` ./zb build --file demo/hello_macos.lua `
@@ -81,9 +82,10 @@ since zb depends on Windows support for Unix sockets.
81
82
you can run ` choco install mingw ` .
82
83
2 . Create a ` C:\zb ` directory.
83
84
3 . Clone this repository to your computer and ` cd ` into it.
84
- 4 . ` go build .\cmd\zb `
85
- 5 . Start the build server in one terminal: ` .\zb.exe serve `
86
- 6 . Run a build in another terminal: ` .\zb.exe build --file demo/hello_windows.lua `
85
+ 4 . ` go generate .\internal\ui `
86
+ 5 . ` go build .\cmd\zb `
87
+ 6 . Start the build server in one terminal: ` .\zb.exe serve `
88
+ 7 . Run a build in another terminal: ` .\zb.exe build --file demo/hello_windows.lua `
87
89
88
90
### Next Steps
89
91
0 commit comments