I configured the build script as 'pack': 'electron-builder -dir -mwl', in script. The issue is, when i run the command npm run pack, it packages the application for all the platform, but for windows there is no single installer file either.exe or '.msi'. Electron-builder builds bunch of files for windows.

Electron-builder Mac Target Zip Dmg Mac Dmg To Iso In Win Microsoft Office 2011 Mac Dmg Convert Dmg To Ipsw Software Application To Open Dmg Files On Mac Dmg Masonry Ltd Arlington Tx Create Vmware Fusion Vm From Dmg Csgo How To Get Dmg Dmg Burner For Windows 7 Mac Os Sierra 10.2.0 Dmg Download. Packaging an electron app simply means creating a desktop installer (dmg, exe, deb, etc). Now if you decide to go around manually packaging your app, you’re gonna have a bad time. Electron-Nuxt: TravisCI + Electron-Builder - Github Releases. This guide will help you setup your config files and services, so that you can easily create Github Releases from TravisCI—using Electron-Nuxt.

The top-level mac key contains set of options instructing electron-builder on how it should build macOS targets. These options applicable for any macOS target.

  • category String - The application category type, as shown in the Finder via View -> Arrange by Application Category when viewing the Applications directory.

    For example, 'category': 'public.app-category.developer-tools' will set the application category to Developer Tools.

    Valid values are listed in Apple’s documentation.

  • target String | TargetConfiguration - The target package type: list of default, dmg, mas, mas-dev, pkg, 7z, zip, tar.xz, tar.lz, tar.gz, tar.bz2, dir. Defaults to default (dmg and zip for Squirrel.Mac).

  • identity String - The name of certificate to use when signing. Consider using environment variables CSC_LINK or CSC_NAME instead of specifying this option. MAS installer identity is specified in the mas.
  • icon = build/icon.icns String - The path to application icon.
  • entitlements String - The path to entitlements file for signing the app. build/entitlements.mac.plist will be used if exists (it is a recommended way to set). MAS entitlements is specified in the mas.
  • entitlementsInherit String - The path to child entitlements which inherit the security settings for signing frameworks and bundles of a distribution. build/entitlements.mac.inherit.plist will be used if exists (it is a recommended way to set). Otherwise default.

    This option only applies when signing with entitlements provided.

  • provisioningProfile String - The path to the provisioning profile to use when signing, absolute or relative to the app root.

  • bundleVersion String - The CFBundleVersion. Do not use it unless you need to.
  • bundleShortVersion String - The CFBundleShortVersionString. Do not use it unless you need to.
  • darkModeSupport = false Boolean - Whether a dark mode is supported. If your app does have a dark mode, you can make your app follow the system-wide dark mode setting.
  • helperBundleId = ${appBundleIdentifier}.helper String - The bundle identifier to use in the application helper’s plist.
  • type = distribution “distribution” | “development” - Whether to sign app for development or for distribution.
  • extendInfo any - The extra entries for Info.plist.
  • binaries Array<String> - Paths of any extra binaries that need to be signed.
  • minimumSystemVersion String - The minimum version of macOS required for the app to run. Corresponds to LSMinimumSystemVersion.
  • requirements String - Path of requirements file used in signing. Not applicable for MAS.
  • electronLanguages Array<String> | String - The electron locales. By default Electron locales used as is.
  • extraDistFiles Array<String> | String - Extra files to put in archive. Not applicable for tar.*.
  • hardenedRuntime = true Boolean - Whether your app has to be signed with hardened runtime.
  • gatekeeperAssess = false Boolean - Whether to let electron-osx-sign validate the signing or not.

Electron-builder Mac Target Zip Dmg Free

And all common platform-specific options.

electron-builder

A complete solution to package and build a ready for distribution Electron, Proton Native or Muon app for macOS, Windows and Linux with “auto update” support out of the box.

See documentation on electron.build.

Mac
  • NPM packages management:
    • Native application dependencies compilation (including Yarn support).
    • Development dependencies are never included. You don't need to ignore them explicitly.
    • Two package.json structure is supported, but you are not forced to use it even if you have native production dependencies.
  • Code Signing on a CI server or development machine.
  • Auto Update ready application packaging.
  • Numerous target formats:
    • All platforms: 7z, zip, tar.xz, tar.7z, tar.lz, tar.gz, tar.bz2, dir (unpacked directory).
    • macOS: dmg, pkg, mas.
    • Linux: AppImage, snap, debian package (deb), rpm, freebsd, pacman, p5p, apk.
    • Windows: nsis (Installer), nsis-web (Web installer), portable (portable app without installation), AppX (Windows Store), MSI, Squirrel.Windows.
  • Publishing artifacts to GitHub Releases, Amazon S3, DigitalOcean Spaces and Bintray.
  • Advanced building:
    • Pack in a distributable format already packaged app.
    • Separate build steps.
    • Build and publish in parallel, using hard links on CI server to reduce IO and disk space usage.
  • electron-compile support (compile for release-time on the fly on build).
  • Docker images to build Electron app for Linux or Windows on any platform.
  • Proton Native and Muon support.
QuestionAnswer
“I want to configure electron-builder”See options
“I have a question”Open an issue or join the chat
“I found a bug”Open an issue
“I want to support development”Donate

Real project example — onshape-desktop-shell.

Installation

Yarn is strongly recommended instead of npm.

Electron-builder Mac Target Zip Dmg File

yarn add electron-builder --dev

Quick Setup Guide

Electron-builder Mac Target Zip Dmg

electron-webpack-quick-start is a recommended way to create a new Electron application. See Boilerplates.

DmgZip
  1. Specify the standard fields in the application package.json — name, description, version and author.

  2. Specify the build configuration in the package.json as follows:

    See all options.

  3. Add icons.

  4. Add the scripts key to the development package.json:

    Then you can run yarn dist (to package in a distributable format (e.g. dmg, windows installer, deb package)) or yarn pack (only generates the package directory without really packaging it. This is useful for testing purposes).

    To ensure your native dependencies are always matched electron version, simply add script 'postinstall': 'electron-builder install-app-deps' to your package.json.

  5. If you have native addons of your own that are part of the application (not as a dependency), set nodeGypRebuild to true.

Electron-builder Mac Target Zip Dmg

Please note that everything is packaged into an asar archive by default.

Electron-builder Mac Target Zip Dmg File

For an app that will be shipped to production, you should sign your application. See Where to buy code signing certificates.

Donate

We do this open source work in our free time. If you'd like us to invest more time on it, please donate. Donation can be used to increase some issue priority.

Electron-builder Mac Target Zip Dmg Download

Sponsors