"vscode:/vscode.git/clone" did not exist on "fc4dd80208bbcf6f834e7e1594db0e106961fd60"
development.md 648 Bytes
Newer Older
Bruce MacDonald's avatar
Bruce MacDonald committed
1
2
# Development

Jeffrey Morgan's avatar
Jeffrey Morgan committed
3
Install required tools:
Bruce MacDonald's avatar
Bruce MacDonald committed
4
5

```
Matt Williams's avatar
Matt Williams committed
6
brew install go
Bruce MacDonald's avatar
Bruce MacDonald committed
7
8
```

Matt Williams's avatar
Matt Williams committed
9
Then build ollama:
Bruce MacDonald's avatar
Bruce MacDonald committed
10
11

```
Matt Williams's avatar
Matt Williams committed
12
go build .
Bruce MacDonald's avatar
Bruce MacDonald committed
13
14
```

Jeffrey Morgan's avatar
Jeffrey Morgan committed
15
Now you can run `ollama`:
Bruce MacDonald's avatar
Bruce MacDonald committed
16
17

```
Jeffrey Morgan's avatar
Jeffrey Morgan committed
18
./ollama
Bruce MacDonald's avatar
Bruce MacDonald committed
19
20
```

Jeffrey Morgan's avatar
Jeffrey Morgan committed
21
## Releasing
Bruce MacDonald's avatar
Bruce MacDonald committed
22

Jeffrey Morgan's avatar
Jeffrey Morgan committed
23
To release a new version of Ollama you'll need to set some environment variables:
Bruce MacDonald's avatar
Bruce MacDonald committed
24

Jeffrey Morgan's avatar
Jeffrey Morgan committed
25
26
27
28
29
30
31
32
* `GITHUB_TOKEN`: your GitHub token
* `APPLE_IDENTITY`: the Apple signing identity (macOS only)
* `APPLE_ID`: your Apple ID
* `APPLE_PASSWORD`: your Apple ID app-specific password
* `APPLE_TEAM_ID`: the Apple team ID for the signing identity
* `TELEMETRY_WRITE_KEY`: segment write key for telemetry

Then run the publish script with the target version:
Bruce MacDonald's avatar
Bruce MacDonald committed
33
34

```
Jeffrey Morgan's avatar
Jeffrey Morgan committed
35
VERSION=0.0.2 ./scripts/publish.sh
Bruce MacDonald's avatar
Bruce MacDonald committed
36
```
Jeffrey Morgan's avatar
Jeffrey Morgan committed
37
38
39
40