https://github.com/bradymholt/electron-playground
A playground for learning Electron
https://github.com/bradymholt/electron-playground
electron
Last synced: 30 days ago
JSON representation
A playground for learning Electron
- Host: GitHub
- URL: https://github.com/bradymholt/electron-playground
- Owner: bradymholt
- Created: 2017-01-02T20:44:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-19T14:47:54.000Z (over 7 years ago)
- Last Synced: 2025-02-02T04:15:04.118Z (3 months ago)
- Topics: electron
- Language: JavaScript
- Homepage:
- Size: 341 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# electron-playground
A playground for learning Electron
## Setup
1. brew tap caskroom/cask && brew cask install xquartz && brew install wine
1. npm install## Scripts
- `npm run start` - Start Electron and run the app for development
- `npm run pack` - Package OS X and Windows installer apps to `./dist`
- `npm run pack:osx` - Package OS X to `./dist`
- `npm run pack:win` - Package Windows installer to `./dist`## Notes
### Windows Packaging Lessons Learned
- When running electron-packager, use `--asar=true` option to prevent mono-sgen taking forever to run.
- When running electron-packager, use `--version-string.ProductName='electron-playground'` to control the name of the Desktop shortcut
- Squirrel events must be handled on startup