You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This repository demonstrates how to integrate the [Codex Go bindings](https://github.com/codex-storage/codex-go-bindings) into a Go project.
4
4
5
-
The project starts a Codex node, uploads and downloads some data, and can be stopped with `Ctrl+C`.
5
+
The project starts a Codex node, uploads and downloads some data and then stops the node.
6
6
7
7
## Usage
8
8
@@ -19,13 +19,19 @@ make fetch
19
19
```
20
20
21
21
The default `OS` is `linux` and the default `ARCH` is `amd64`.
22
-
You can update them like this:
22
+
You can provide them as environment variables:
23
23
24
24
```sh
25
25
OS="macos" ARCH="arm64" make fetch
26
26
```
27
27
28
-
By default, the last release will be downloaded and extracted to libs folder.
28
+
You can change the version by providing it as environment variables:
29
+
30
+
```sh
31
+
VERSION="v0.0.21" make fetch
32
+
```
33
+
34
+
The default folder is `libs`, you can change it by editing the `Makefile`.
29
35
30
36
### Build
31
37
@@ -36,5 +42,15 @@ make build
36
42
### Run
37
43
38
44
```sh
39
-
./example
45
+
make run
46
+
```
47
+
48
+
### Windows
49
+
50
+
To run on Windows, you need to include the `libs` folder (or your custom folder if you changed it) into the path:
0 commit comments