mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
2.3 KiB
2.3 KiB
Electron Build Changelog
All notable changes to the Shakespeare Electron build will be documented in this file.
[Unreleased]
Added
- Initial Electron build support
- Main process with secure window management (
main.js) - Preload script with minimal API exposure (
preload.js) - electron-builder configuration for multi-platform builds (
builder.config.js) - TypeScript definitions for Electron API (
electron.d.ts) - Icon generation script (
generate-icons.sh) - Comprehensive documentation:
INDEX.md- Documentation indexREADME.md- Technical documentationQUICKSTART.md- Quick start guideINTEGRATION.md- Developer integration guideTROUBLESHOOTING.md- Troubleshooting guide
- NPM scripts for development and building:
electron:dev- Development modeelectron:build- Build for current platformelectron:build:mac- Build for macOSelectron:build:win- Build for Windowselectron:build:linux- Build for Linuxelectron:build:all- Build for all platformselectron:icons- Generate platform icons
Security
- Enabled context isolation
- Enabled sandbox mode
- Disabled node integration
- Implemented navigation restrictions
- Configured secure window opening behavior
- Minimal IPC API surface through preload script
Platform Support
- macOS (Intel and Apple Silicon)
- DMG installer
- ZIP archive
- Windows (x64 and ARM64)
- NSIS installer
- Portable executable
- Linux (x64 and ARM64)
- AppImage
- DEB package
- RPM package
API
window.electron.isElectron- Detect Electron environmentwindow.electron.platform()- Get platform informationwindow.electron.version()- Get app version
Future Enhancements
Planned features for future releases:
- Auto-update support
- Native application menu
- System tray integration
- File type associations
- Custom URL scheme handling
- Native file dialogs
- Enhanced offline capabilities
- Keyboard shortcuts/accelerators
- Window state persistence
- Multiple window support
- Native notifications
- Deep linking support
Notes
The Electron build is designed to keep the existing web codebase untouched. All Electron-specific code is contained in the electron/ directory, and the web version continues to work independently.