Run the following commands in the root directory.
npm install
npm run start
- Download the latest Ollama release for MacOS from here.
- Unzip the downloaded file.
- Copy the
ollama
executable tochatd/src/service/ollama/runners/ollama-darwin
. - The Electron app should be signed to be able to run on MacOS, so you need a developer certificate. To sign the app, set the following environment variables:
[email protected]
APPLE_IDENTITY="Developer ID Application: Your Name (ABCDEF1234)"
APPLE_ID_PASSWORD=your_apple_id_app_specific_password
APPLE_TEAM_ID=ABCDEF1234
You can find your Apple ID, Apple Team ID, and Apple ID Application in your Apple Developer account. You can create an app-specific password here.
- Run
npm run package
to package the app.
- Build Ollama from source for Windows, this will support CPU only. See here.
- Copy the
ollama.exe
executable tochatd/src/service/ollama/runners/ollama.exe
. - Run
npm run package
to package the app.
Note: The Windows app is not signed, so you will get a warning when you run it.
- Build Ollama from source for Linux x64 to support CPU only, this allows for a smaller executable package. See here.
- Copy the
ollama
executable tochatd/src/service/ollama/runners/ollama-linux
. - Run
npm run package
to package the app.