Therefore, we are going to use the electron-squirrel-startup module that will help you to achieve our goal. It handles the most common commands, such as managing desktop shortcuts (installation event, update event and uninstall event). Start the NodeJS command prompt and Navigate to the workspace using ( note that the module needs to be installed in the workspace, not in your project): cd C:\Users\sdkca\Desktop\electron-workspaceĪnd then install the module with: npm install electron-winstallerĪfter the installation of the module, our workspace will have now 2 folders:ģ. Manage desktop shortcuts (install, update and uninstall events)Īn application that can be installed, but the executable can't be found to start it once it's closed doesn't work for nothing. This NPM module builds Windows installers for Electron apps using Squirrel. Now, we need to install the module that will help us to create the installer, in this case we are going to use electron-winstaller. In this case, the folder will be located at C:\Users\sdkca\Desktop\electron-workspace and the source code of the electron project will be inside of it ( myapp-source). To make this tutorial easy to understand, we are going to create a folder in the desktop with the name electron-workspace, this folder will contain inside a folder that contains the source code of your Electron Project: Prepare your work areaĪnd with this, we don't mean that you should clean your computer. In this article, you will learn how to create an installer for windows using the electron-winstaller module which uses Squirrel, the installation and update framework for Windows desktop apps. However, Windows is not Linux.Īlmost all installers are created by a tool (e.g. Developers just need to provide a package for a distribution, each distribution then has a way to install this package and this way can be in a terminal ( apt-get) or via a graphical interface, e.g. If you want to create instead of a Squirrel based installer, a MSI (Microsoft Installer) setup, please follow this tutorial instead.Īs a developer, you may know that Linux has package managers so the developers don't "need" to make the installers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |