2017-04-21 23:26:10 +00:00
|
|
|
# Electron Demo
|
|
|
|
Example of a simple `Electon` app that uses the features
|
|
|
|
[described as "sexy" by the webtorrent team](https://blog.dcpos.ch/how-to-make-your-electron-app-sexy).
|
2017-04-20 18:01:35 +00:00
|
|
|
|
2017-04-21 23:26:10 +00:00
|
|
|
## Contents
|
|
|
|
So far the following have been implemented
|
|
|
|
* `tray.js`: Tray integration
|
|
|
|
* `progress.js`: Dock badge count and window progress bar
|
|
|
|
* `notifications.js`: Notifications
|
|
|
|
* `menu.js`: Custom menu and keyboard shortcuts
|
|
|
|
* `crash-reporter.js`: Reporting side of the crash reporting
|
|
|
|
* `drag-drop-main.js`: Handling of drag-and-drop events onto the dock or launcher
|
|
|
|
* `drag-drop-render.js`: Handling of drag-and-drop events onto the window
|
|
|
|
|
|
|
|
## Missing
|
|
|
|
The following have not yet been implemented in this demo
|
|
|
|
* One-step build
|
|
|
|
* Signed installers for all platforms
|
|
|
|
* Automatic updaters for Mac and Windows
|
|
|
|
|
|
|
|
## Running the app without installation
|
2017-04-20 18:01:35 +00:00
|
|
|
```bash
|
|
|
|
npm install
|
|
|
|
npm start
|
|
|
|
```
|
|
|
|
|
2017-04-21 23:26:10 +00:00
|
|
|
## Creating the .deb
|
2017-04-20 18:01:35 +00:00
|
|
|
```bash
|
|
|
|
npm install
|
|
|
|
npm run build
|
|
|
|
npm run deb64
|
|
|
|
```
|
|
|
|
|
|
|
|
The installer will be placed in `dist/installers`
|