Build and Release¶
NPM scripts¶
Scripts are defined in src/package.json.
Script |
Command |
Purpose |
|---|---|---|
|
|
Remove generated JS/type artifacts. |
|
|
Incremental TypeScript compilation during development. |
|
|
Compile source for app runtime. |
|
clean -> compile -> |
Launch app in local development mode. |
|
|
Download and prepare bundled Ollama runtime. |
|
clean -> compile -> prepack -> electron-builder |
Create distributable artifacts. |
|
clean -> compile -> prepack -> publish always |
Build and publish release assets. |
Packaging targets¶
Build config: src/build.config.js.
Windows:
nsis,appx,zip,msi(or7zfor GPU variants)macOS:
dmg,zip,pkgLinux:
AppImage,deb,tar.xz(ortar.xzonly for GPU variants)
Important environment variables¶
Variable |
Default |
Effect |
|---|---|---|
|
|
Select bundled runtime variant (for example |
|
|
Controls release channel behavior such as store compression mode. |
|
unset |
Token used by vendor bundling scripts when fetching releases. |
Ollama bundling pipeline¶
The prepack script (src/scripts/bundle-ollama.ts):
Resolves host OS and architecture.
Downloads matching Ollama release assets.
Extracts and relocates binaries into
src/vendor/electron-ollama.Optionally merges shared libraries and prunes unused accelerator folders.
Release metadata¶
Release publishing is configured for GitHub:
Owner:
sharktideRepository:
InferencePort-AIRelease type:
release