blob: 54dcfc569c2e3cd475c04818b393b055184e1acd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# electron-squirrel-startup
> Default [Squirrel.Windows][squirrel] event handler for your [Electron][electron] apps.
## Installation
```
npm i electron-squirrel-startup
```
## Usage
To handle the most common commands, such as managing desktop shortcuts, just
add the following to the top of your `main.js` and you're good to go:
```js
if(require('electron-squirrel-startup')) return;
```
## Read More
### [Handling Squirrel Events][squirrel-events]
### [Squirrel.Windows Commands][squirrel-commands]
## License
Apache 2.0
[squirrel]: https://github.com/Squirrel/Squirrel.Windows
[electron]: https://github.com/atom/electron
[squirrel-commands]: https://github.com/Squirrel/Squirrel.Windows/blob/master/src/Update/Program.cs#L98
[squirrel-events]: https://github.com/atom/grunt-electron-installer#handling-squirrel-events
|