electron-winstaller

Other topics

Build JS

Here Is basic build file to build executable from electron windows app.

var electronInstaller = require('electron-winstaller');
var resultPromise = electronInstaller.createWindowsInstaller({
    appDirectory: 'Your_electron_application_path',
    authors: 'Author Name',
    description: "Description"
});

resultPromise.then(() => console.log("Build Success!"), (e) => console.log(`No dice: ${e.message}`));

Syntax:

  • Install Globally
  • npm install -g electron-winstaller
  • Install Locally
  • npm install --save-dev electron-winstaller

Parameters:

Config NameDescription
appDirectoryThe authors value for the nuget package metadata. Defaults to the author field from your app's package.json file when unspecified.
ownersThe owners value for the nuget package metadata. Defaults to the authors field when unspecified.
exeThe name of your app's main .exe file. This uses the name field in your app's package.json file with an added .exe extension when unspecified.
descriptionThe description value for the nuget package metadata. Defaults to the description field from your app's package.json file when unspecified.
versionThe version value for the nuget package metadata. Defaults to the version field from your app's package.json file when unspecified.
titleThe title value for the nuget package metadata. Defaults to the productName field and then the name field from your app's package.json file when unspecified.
nameWindows Application Model ID (appId). Defaults to the name field in your app's package.json file.
certificateFileThe path to an Authenticode Code Signing Certificate
certificatePasswordThe password to decrypt the certificate given in certificateFile
signWithParamsParams to pass to signtool. Overrides certificateFile and certificatePassword.
iconUrlA URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). Defaults to the Atom icon.
setupIconThe ICO file to use as the icon for the generated Setup.exe
setupExeThe name to use for the generated Setup.exe file
setupMsiThe name to use for the generated Setup.msi file
noMsiShould Squirrel.Windows create an MSI installer?
remoteReleasesA URL to your existing updates. If given, these will be downloaded to create delta updates
remoteTokenAuthentication token for remote updates

Contributors

Topic Id: 9492

Example Ids: 29367

This site is not affiliated with any of the contributors.