您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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