Repository navigation
Add Electron desktop app with signed release pipeline - #26
Merged
Merged
Conversation
Wrap the existing Next.js static export in Electron so Rescript can ship macOS/Windows/Linux installers alongside the GitHub Pages web app. Ports OpenDex's electron-builder signing/notarization, auto-updater, version cut scripts, CI/release workflows, and README download badges. Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
next-env.d.ts is gitignored, so bare `tsc --noEmit` in CI could not resolve `@/assets/logo.png`. Add committed image module declarations and run `next typegen` before web typecheck in CI/release. Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Only the COI service worker stays Electron-specific; analytics loads the same way as on the web. Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
Co-authored-by: Wassim Gharbi <wassgha@gmail.com>
# Conflicts: # PLAN.md # tsconfig.json
wassgha
marked this pull request as ready for review
July 29, 2026 20:29
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Wraps Rescript鈥檚 existing Next.js editor in an Electron shell so we can ship desktop installers (macOS / Windows / Linux) while keeping the GitHub Pages web app.
Mirrors the packaging setup from opendex:
electron/) loads the Next static export via anapp://protocol with COOP/COEP headers (SharedArrayBuffer for ffmpeg.wasm / ONNX)electron/updater.ts).github/workflows/release.yml) + version cut scripts (cut:patch/minor/major)Dev:
npm run electron:dev路 Package:npm run dist路 Web/Pages deploy unchanged.Test plan
npm run electron:devopens the editor against the Next dev servernpm run distproduces installers underdist/(unsigned locally)STATIC_EXPORT=1)@/assets/logo.pngmodule types +next typegen)v0.1.0tag and confirm the release workflow signs/notarizes macOS and publishes drafts for all platforms