opkrain.blogg.se

Create windows installer for electron app
Create windows installer for electron app











create windows installer for electron app create windows installer for electron app

Set a few environment variables to point the toolchains to your installation path.

  • If your Visual Studio is installed in a directory other than the default, you'll need to.
  • See the Chromium build documentation for more details on which Visual Studio.
  • Visual Studio 2019 (>=16.0.0) to build, but Visual Studio 2022 (>=17.0.0) is preferred - download VS 2022 Community Edition for free.
  • For bundling and distributing your app code with the prebuilt Electron binaries, see the application distribution guide. Follow the guidelines below for building Electron itself on Windows, for the purposes of creating custom Electron binaries. In the Electron Forge configuration, add a path string for “icon” to the “packagerConfig” subsection that specifies where your. ico for you from the PNG, but also an ICNS-type icon that would potentially work for a Mac version of your app. 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. Squirrel.Windows installers do not display detailed progress information or ask the user for any confirmation while installing. (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.

    create windows installer for electron app

    Tools, electron, deploy, windows, desktop













    Create windows installer for electron app