Skip to content

Commit 2784f95

Browse files
authored
Add instructions for making a local build on Windows to README (#447)
1 parent 343a457 commit 2784f95

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,26 @@ See the [docs](https://docs.kosli.com/client_reference/)
1717

1818
`make lint`
1919

20-
## Building the code
20+
## Building the code (Mac/Linux)
2121

2222
`make build`
2323

24+
Then to run Kosli commands:
25+
`./kosli [COMMAND]`
26+
27+
## Building the code (Windows)
28+
29+
Windows will not allow building using the makefile, so we need to run the commands directly in the terminal.
30+
31+
`set GOFLAGS=""`
32+
`go mod download`
33+
`go mod tidy`
34+
`go vet ./...`
35+
`go build -o kosli.exe -ldflags '-extldflags "-static"' ./cmd/kosli/`
36+
37+
Then to run Kosli commands:
38+
`./kosli.exe [COMMAND]` or `.\kosli.exe [COMMAND]`
39+
2440
## Building the documentation
2541

2642
`make hugo-local`

0 commit comments

Comments
 (0)