786 B
786 B
Development
Install required tools:
brew install go
Enable CGO:
export CGO_ENABLED=1
You will also need a C/C++ compiler such as GCC for MacOS and Linux or Mingw-w64 GCC for Windows.
Then build ollama:
go build .
Now you can run ollama
:
./ollama
Releasing
To release a new version of Ollama you'll need to set some environment variables:
GITHUB_TOKEN
: your GitHub tokenAPPLE_IDENTITY
: the Apple signing identity (macOS only)APPLE_ID
: your Apple IDAPPLE_PASSWORD
: your Apple ID app-specific passwordAPPLE_TEAM_ID
: the Apple team ID for the signing identityTELEMETRY_WRITE_KEY
: segment write key for telemetry
Then run the publish script with the target version:
VERSION=0.0.2 ./scripts/publish.sh