Packaging Electron Project

 The project is to ensure the normal operation of npm run dev, the end of the program,

Part of the project has been referred to the running tool package outputting electron-packager

May be used globally installed manner: the install NPM -g Electron-Packager

The current project may be partially attached to: the install NPM Save dev- Electron-Packager

After installation, execution Electron-Packager. MyClient - Win --out ../electron-api-demos-master --arch X = 64 - APP---electron-Version 0.0.1 Version = = 6.0.3 to package the project,

Or to configure the command file scripts package.json

Note: Standard Red place "myClient is exe file name (customizable) after generation, .. / electron-api-demos-master path is generated files (usually output to the project root directory), the computer 64 refers to the present several of the operating system, version 6.0.3 is a electron

 

 [Phrase Wrote new app to .. \ electron-api-demos-master \ myClient-win32-x64] After the successful implementation of the file relative path is generated, as shown in

Can point to go see all the generated files, including the exe file, double-click the window you can see the effect of

You can create a shortcut to the right exe files on the desktop, double-click the pop-up form, is not it kind of sense of accomplishment

 

 

Guess you like

Origin www.cnblogs.com/lightmusic/p/11404619.html