forked from jsnbuchanan/crowd-funder-for-time-pwa
WIP (fix): improve electron build configuration and service worker handling
- Properly disable service workers in electron builds - Add CSP headers for electron security - Fix path resolution in electron context - Improve preload script error handling and IPC setup - Update build scripts for better electron/capacitor compatibility - Fix router path handling in electron context - Remove electron-builder dependency - Streamline build process and output structure This change improves the stability and security of electron builds while maintaining PWA functionality in web builds. Service workers are now properly disabled in electron context, and path resolution issues are fixed.
This commit is contained in:
11
BUILDING.md
11
BUILDING.md
@@ -46,21 +46,16 @@ To build the desktop application:
|
||||
|
||||
1. Run the Electron build:
|
||||
```bash
|
||||
npm run build -- --mode electron
|
||||
npm run build:electron
|
||||
```
|
||||
|
||||
2. The built files will be in `dist-electron`.
|
||||
|
||||
3. To create installable packages:
|
||||
3. To run the desktop app:
|
||||
```bash
|
||||
npm run electron:build
|
||||
electron dist-electron
|
||||
```
|
||||
|
||||
This will create platform-specific installers in `dist-electron-build`:
|
||||
- Windows: `.exe` installer
|
||||
- macOS: `.dmg` file
|
||||
- Linux: `.AppImage` file
|
||||
|
||||
## Mobile Builds (Capacitor)
|
||||
|
||||
### iOS Build
|
||||
|
||||
Reference in New Issue
Block a user