-
Notifications
You must be signed in to change notification settings - Fork 9
feat(win): Windows support — build, package, publish, and platform-aware UX #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d58a659
feat(win): cross-platform binary resolution + Windows build pipeline
Anurag-Wednesday 56f608b
fix(llm): guarantee model is loaded before ready + cross-platform orp…
Anurag-Wednesday 5862dcd
feat(models): dev control to stop/restart the local model server
Anurag-Wednesday 5322c17
fix(win): fetch-win-binaries crashed on cosmetic listing, failing aft…
Anurag-Wednesday 6759e12
Merge branch 'main' into feat/windows-support
Anurag-Wednesday 10cd1fb
docs(win): add Windows support matrix + test plan/models
Anurag-Wednesday fc112dc
fix(win): pin bundled llama-server to b9838 to match the macOS engine
Anurag-Wednesday fd11183
fix(tools): budget tool schemas to context + surface server errors (B…
Anurag-Wednesday 4226098
perf/fix(win): GPU (Vulkan) engine + CPU fallback, tighter tool budge…
Anurag-Wednesday c11d8f8
feat(win): device-aware copy + gate Pro to "coming soon" off macOS
Anurag-Wednesday d80b3da
fix(win): fetch a current sd asset (cpu x64), image binary was silent…
Anurag-Wednesday 947d914
fix(embeddings): pin transformers cacheDir to a writable dir (was re-…
Anurag-Wednesday e59c30c
fix(win): set the Windows app icon (was defaulting to the Electron icon)
Anurag-Wednesday bccc194
refactor(models): remove the dev-only stop/restart model-server control
Anurag-Wednesday 3d79573
feat(pro): tell non-Mac users Pro is coming soon on the upgrade screen
Anurag-Wednesday 78c577d
ci(win): fold a Windows build into release.yml (versioned, published,…
Anurag-Wednesday 1b04db3
ci(win): publish a permanent Windows download link (parity with Mac)
Anurag-Wednesday 81509ff
docs(win): README lists Windows as a supported platform
Anurag-Wednesday 4ef027f
test(tools): add effectiveContextSize to the llm mock (fixes CI test …
Anurag-Wednesday c1b7ad8
chore(pr): address review — CI credential hygiene, docs, brand copy
Anurag-Wednesday File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| name: Windows Build (branch) | ||
|
|
||
| # Standalone Windows build for the feat/windows-support branch. Kept separate | ||
| # from release.yml (macOS core+pro) on purpose: this neither bumps the version | ||
| # nor publishes to Releases — it packages the NSIS installer and uploads it as a | ||
| # workflow artifact you can download. Re-fold a windows-2022 job into release.yml | ||
| # once a build is verified on a real Windows machine. | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - feat/windows-support | ||
| workflow_dispatch: # lets you trigger a build manually from the Actions tab | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build-win: | ||
| # windows-2022 = VS 2022 toolchain. windows-latest ships VS 2026 (VS 18), | ||
| # which node-gyp 11 can't parse — breaking native-module (better-sqlite3, | ||
| # node-llama-cpp) compiles. Pin until node-gyp catches up. | ||
| runs-on: windows-2022 | ||
| env: | ||
| # True when the private-repo token is configured, so we bundle Pro (same as | ||
| # the Mac release build). Falsey on a fork / missing secret → core-only exe. | ||
| # Can't reference `secrets` directly in a step `if`, so surface it as env. | ||
| HAS_PRO_TOKEN: ${{ secrets.PRO_REPO_TOKEN != '' }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false # don't leave the token in .git/config for npm postinstall scripts | ||
| lfs: false # the repo's LFS binaries are macOS-only; Windows runtimes | ||
| # come from fetch-win-binaries.ps1, so don't pull ~235MB of | ||
| # dylibs we won't ship. | ||
|
|
||
| # Private pro source into pro/ → __OFFGRID_PRO__ true, so the exe bundles the | ||
| # Pro layer (mirrors release.yml). Needed to exercise the Pro "coming soon" | ||
| # gate on Windows. Pro stays license-gated at runtime; launch with | ||
| # OFFGRID_PRO=1 to force it on for testing without a license. Skipped (core | ||
| # build) when PRO_REPO_TOKEN isn't available. | ||
| - uses: actions/checkout@v4 | ||
| if: env.HAS_PRO_TOKEN == 'true' | ||
| with: | ||
| repository: off-grid-ai/desktop-pro | ||
| token: ${{ secrets.PRO_REPO_TOKEN }} | ||
| path: pro | ||
| fetch-depth: 1 | ||
| persist-credentials: false # keep PRO_REPO_TOKEN out of pro/.git/config | ||
| - name: Drop nested .git from pro/ | ||
| if: env.HAS_PRO_TOKEN == 'true' | ||
| shell: bash | ||
| run: rm -rf pro/.git # don't nest a repo inside the build tree | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
| cache: 'npm' | ||
|
|
||
| # node-gyp (better-sqlite3-multiple-ciphers) fails on Python 3.13+; pin 3.12. | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.12' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Fetch Windows native binaries (llama/whisper/sd/ffmpeg) | ||
| shell: pwsh | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # raises the GitHub API rate limit | ||
| run: ./scripts/fetch-win-binaries.ps1 | ||
|
|
||
| - name: Build (typecheck + bundle) | ||
| run: npm run build | ||
|
|
||
| - name: Package Windows installer (NSIS) | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| # Optional Windows code signing (no-op if absent → unsigned; SmartScreen | ||
| # will warn until you add a cert via these secrets). | ||
| CSC_LINK: ${{ secrets.WIN_CSC_LINK }} | ||
| CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }} | ||
| run: npx electron-builder --win --publish never | ||
|
|
||
| - name: Upload installer artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: off-grid-ai-windows | ||
| path: | | ||
| dist/*.exe | ||
| dist/*.zip | ||
| if-no-files-found: error | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.