In the Electron Forge configuration, add a path string for “icon” to the “packagerConfig” subsection that specifies where your. oneClick true Boolean - Whether to create one-click installer or assisted. These options also applicable for Web installer, use top-level nsisWeb key. ico for you from the PNG, but also an ICNS-type icon that would potentially work for a Mac version of your app. The top-level nsis key contains set of options instructing electron-builder on how it should build NSIS target (default target for Windows). ico format, but an easier method is to create a 1024x1024 PNG image of your icon and then use a helper tool called electron-icon-maker which will not only generate an. You will also need to make sure that the Forge component is installed as a dev dependency in your Electron project, as Electron Forge’s project setup script does not currently include it.īy default, the installer will show this simple window, with no configuration options during install:Įlectron Forge lets you set an application icon in the same way, regardless of the kind of installer. The default icon and progress animation of a Squirrel.Windows installer WiXīefore you can create WiX installers using Electron Forge, you will first need to install the WiX toolset, and make sure the candle.exe and light.exe tools are configured to be accessible via the PATH system variable. Instead, they display a simple looping animation, and the application is launched immediately once installation is complete. To do this, you can either use specialized tooling or manual approaches. Squirrel.Windows installers do not display detailed progress information or ask the user for any confirmation while installing. Electron is a framework that uses web technologies (HTML, CSS, and JS) to build cross-platform desktop applications. To distribute your app with Electron, you need to package and rebrand it. (Note: I am not counting the Zip option, which as the name implies is just a zip file containing all your application files, with no actual installer.) Creating a Basic Installer Squirrel.Windows These each have their own set of configuration options and produce installers with different user experience. One of the ways that an Electron app can be packaged for distribution is by using Electron Forge.įor Windows, there are currently two options for the kind of installer that Electron Forge can make, WiX and Squirrel.Windows. Tools, electron, deploy, windows, desktop
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |