-
Notifications
You must be signed in to change notification settings - Fork 65
Finishing flash.comma.ai #59 #163
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
base: master
Are you sure you want to change the base?
Conversation
|
Trying to run this on my macbook and getting: Already tried wiping everything with |
This change works to resolve the electron builder issue by co-currently running the electron builder with npm
Fix Electron build issues on Apple Silicon Macs Changed: "electron" script to use npm instead of direct electron execution Key Changes: M4 Mac mini: No issues (original development environment) Please test and confirm: bun run electron-dev now works without errors Screen.Recording.2025-07-28.at.10.05.45.PM.movNote I did not have my device connected for the demo video so the usb error message is not representative of an unexpected error. |
Summary
This PR adds Electron support to flash.comma.ai, enabling the web application to run as a native desktop application across Windows, macOS, and Linux platforms. The implementation maintains full compatibility with the existing web version while adding enhanced USB device access and native desktop features.
Motivation
Changes Made
Core Electron Implementation
electron/main.js): Application lifecycle, window management, USB permissionselectron/preload.js): Secure IPC bridge with context isolationelectron-updaterEnhanced USB Device Handling
Development & Build Tools
Testing Instructions
Prerequisites
Development Testing
Start Development Mode:
Test USB Functionality:
Platform-Specific Testing:
Production Build Testing
Build for Current Platform:
Install and Test:
Cross-Platform Testing
Build for all platforms:
Test on available platforms:
Screenshots/Media
Development Environment
Desktop Application
|
|
USB Device Detection
Build Outputs
Demo Video
https://github.com/user-attachments/assets/c03e181b-a06e-43e6-a211-5ab552e34701
4x Speed
Checklist
Development
Security
Cross-Platform Builds
Documentation
Backward Compatibility
Deployment Notes
New Dependencies
{ "electron": "^28.1.0", "electron-builder": "^24.9.1", "electron-updater": "^6.1.7", "concurrently": "^8.2.2", "wait-on": "^7.2.0", "cross-env": "^7.0.3" }Build Artifacts
.exeinstaller (NSIS).dmgpackage.AppImageand.debpackagesRelated Issues: #[59]
Breaking Changes: None
Documentation: Updated in this PR