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 yourmain.jsand you're good to go: if(require('electron-squirrel-startup'))return;
TypeScript definitions for electron-squirrel-startup. Latest version: 1.0.2, last published: a year ago. Start using @types/electron-squirrel-startup in your project by running `npm i @types/electron-squirrel-startup`. There are no other projects in the
"archiver": "1.0.0", "electron-squirrel-startup": "1.0.0", "less": "2.7.1", "lodash": "4.13.1", "moment": "2.13.0", "nugget": "2.0.0", "q": "1.4.1", "rimraf": "2.5.2", "tmp": "0.0.28", "unzip2": "0.2.5" }, ... } 从中,我们可以看到这个应用的一些基本信息...
"electron-squirrel-startup": "1.0.0","less": "2.7.1","lodash": "4.13.1","moment": "2.13.0","nugget": "2.0.0","q": "1.4.1","rimraf": "2.5.2","tmp": "0.0.28","unzip2": "0.2.5"},...} 从中,我们可以看到这个应⽤的⼀些基本信息,如作者版本,license,...
{ "electron-squirrel-startup": "1.0.0", "example-core": "*" }, "devDependencies": { "@babel/core": "7.20.5", "@babel/preset-env": "7.20.2", "@babel/preset-react": "7.18.6", "@electron-forge/cli": "6.0.4", "@electron-forge/maker-squirrel": "6.0.4", "@electron-forge...
使用Electron进行打包通常会用到electron-builder或者electron-packager两种工具。在使用electron-builder的时候...
{ "name": "whatever", "version": "1.0.0", "description": "npm run all的简单用法...
if(require('electron-squirrel-startup'))return; You should handle these events in your app'smainentry point with something such as: constapp=require('app');// this should be placed at top of main.js to handle setup events quicklyif(handleSquirrelEvent()){// squirrel event handled and ap...
Theelectron-squirrel-startupmodule will handle the most common events for you, such as managing desktop shortcuts. Add the following to the top of yourmain.jsand you're good to go: if(require('electron-squirrel-startup'))return; You should handle these events in your app'smainentry point...
Theelectron-squirrel-startupmodule will handle the most common events for you, such as managing desktop shortcuts. Just add the following to the top of yourmain.jsand you're good to go: if(require('electron-squirrel-startup'))return; ...