feat(electron): bundle draw.io for offline support (#629)

* feat(electron): bundle draw.io for offline support

- Download draw.io static files during CI build (v29.3.5)
- Detect Electron and use local draw.io files instead of CDN
- Add offline=1 parameter to disable external service calls
- Skip /drawio path from i18n middleware redirect
- Add public/drawio/ to .gitignore (downloaded during build)

This allows the Electron app to work completely offline.

* chore: bump version to 0.4.12-beta.3 for offline test

* fix(electron): ad-hoc sign macOS app for bundled draw.io compatibility

* chore: bump version to 0.4.12-beta.4 for ad-hoc sign test

* fix(electron): disable electron-builder signing to use custom ad-hoc signing

* chore: bump version to 0.4.12-beta.5
This commit is contained in:
Dayuan Jiang
2026-01-24 12:47:51 +09:00
committed by GitHub
parent 984eaae04d
commit a55ef7adf9
8 changed files with 69 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "next-ai-draw-io",
"version": "0.4.11",
"version": "0.4.12-beta.5",
"license": "Apache-2.0",
"private": true,
"main": "dist-electron/main/index.js",