You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Muqriz 48f16bfc3e initail first 4 months ago
..
.github/workflows initail first 4 months ago
node_modules initail first 4 months ago
test initail first 4 months ago
.eslintrc initail first 4 months ago
.jsfmtrc initail first 4 months ago
.travis.yml initail first 4 months ago
LICENSE initail first 4 months ago
README.md initail first 4 months ago
appveyor.yml initail first 4 months ago
index.js initail first 4 months ago
package.json initail first 4 months ago

README.md

electron-squirrel-startup travis npm appveyor

Default Squirrel.Windows event handler for your 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:

if(require('electron-squirrel-startup')) return;

For Babel/ES6:

const { app } = require('electron');
// ....
if(require('electron-squirrel-startup')) app.quit();

Read More

Handling Squirrel Events

Squirrel.Windows Commands

License

Apache 2.0