apt-get
) or via a graphical interface, e.g. Ubuntu Software Center. However, Windows is not Linux.electron-workspace
, this folder will contain inside a folder that contains the source code of your Electron Project:C:UserssdkcaDesktopelectron-workspace
and the source code of the electron project will be inside of it (myapp-source
). Avg cleaner for mac download.main.js
file of your Electron Project. At the start of your file (after the declaration of the app variable) add the following lines:handleSquirrelEvent
function expects as first argument the app variable, this function can be added at the end of your main.js
file:myapp-source-built-win32-x64
folder inside the electron-workspace
folder that has the following structure:C:UserssdkcaDesktopelectron-workspace
) with the name you want, in this case it will be myapp-source-built-installers
. You won't touch this folder as the installers will be created in the next step automatically. At this step, you should have 4 folders (myapp-source-built-installers
is empty):build.js
file in our electron workspace (C:UserssdkcaDesktopelectron-workspace
) with the following code inside:/your-built-project/resources/app/package.json
file and remove or replace all the hyphen (-
symbol) e.g if your package.json
looks like:build.js
script navigating to the workspace with the NodeJS command prompt:C:UserssdkcaDesktopelectron-workspacemyapp-source-built-installers
) and you will find there 3 installers (msi installer, executable installer and a nuGET package):Setup.exe
file. Then a mini setup will install the application on your system and you will be able to see it in the start menu of Windows and as a shortcut in the Desktop:loadingGif
option in your build.js
script.package.json
of your app and in the options of the winstaller module, for more information please visit the repository to see the documentation.