Gathering detailed insights and metrics for electron-builder
Gathering detailed insights and metrics for electron-builder
Gathering detailed insights and metrics for electron-builder
Gathering detailed insights and metrics for electron-builder
electron-builder-squirrel-windows
Plugin for [electron-builder](https://github.com/electron-userland/electron-builder) to build Squirrel.Windows installer.
vue-cli-plugin-electron-builder
Easily Build Your Vue.js App For Desktop With Electron
app-builder-lib
electron-builder lib
electron-publish
Part of [electron-builder](https://github.com/electron-userland/electron-builder).
A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
npm install electron-builder
Typescript
Module System
Min. Node Version
Node Version
NPM Version
64
Supply Chain
55.2
Quality
91.3
Maintenance
100
Vulnerability
95.1
License
TypeScript (91.4%)
NSIS (6.11%)
JavaScript (1.59%)
Shell (0.52%)
Dockerfile (0.34%)
Smarty (0.02%)
CSS (0.02%)
Total Downloads
81,288,189
Last Day
27,436
Last Week
491,561
Last Month
2,163,251
Last Year
18,345,409
MIT License
14,115 Stars
3,393 Commits
1,786 Forks
148 Watchers
82 Branches
569 Contributors
Updated on Jun 11, 2025
Latest Version
26.0.12
Package Id
electron-builder@26.0.12
Unpacked Size
74.21 kB
Size
19.47 kB
File Count
25
NPM Version
10.9.2
Node Version
22.14.0
Published on
Mar 22, 2025
Cumulative downloads
Total Downloads
Last Day
10.5%
27,436
Compared to previous day
Last Week
-8.9%
491,561
Compared to previous week
Last Month
1%
2,163,251
Compared to previous month
Last Year
29.7%
18,345,409
Compared to previous year
A complete solution to package and build a ready for distribution Electron, Proton Native app for macOS, Windows and Linux with “auto update” support out of the box. 📦
Always looking for community contributions! 👀 Setting up a dev environment is easy to do 🪩
See the full documentation on electron.build.
7z
, zip
, tar.xz
, tar.7z
, tar.lz
, tar.gz
, tar.bz2
, dir
(unpacked directory).dmg
, pkg
, mas
.deb
), rpm
, freebsd
, pacman
, p5p
, apk
.nsis
(Installer), nsis-web
(Web installer), portable
(portable app without installation), AppX (Windows Store), MSI, Squirrel.Windows.Question | Answer |
---|---|
“I want to configure electron-builder” | See options |
“I found a bug or I have a question” | Open an issue |
“I want to support development” | Donate |
Yarn is strongly recommended instead of npm.
yarn add electron-builder --dev
Yarn 3 use PnP by default, but electron-builder still need node-modules(ref: yarnpkg/berry#4804). Add configuration in the .yarnrc.yaml
as follows:
nodeLinker: "node-modules"
will declare to use node-modules instead of PnP.
electron-webpack-quick-start is a recommended way to create a new Electron application. See Boilerplates.
Specify the standard fields in the application package.json
— name, description
, version
and author.
Specify the build configuration in the package.json
as follows:
1"build": { 2 "appId": "your.id", 3 "mac": { 4 "category": "your.app.category.type" 5 } 6}
See all options. Option files to indicate which files should be packed in the final application, including the entry file, maybe required.
You can also use separate configuration files, such as js
, ts
, yml
, and json
/json5
. See read-config-file for supported extensions. JS Example for programmatic API
Add icons.
Add the scripts key to the development package.json
:
1"scripts": { 2 "app:dir": "electron-builder --dir", 3 "app:dist": "electron-builder" 4}
Then you can run yarn app:dist
(to package in a distributable format (e.g. dmg, windows installer, deb package)) or yarn app:dir
(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
.
If you have native addons of your own that are part of the application (not as a dependency), set nodeGypRebuild to true
.
Please note that everything is packaged into an asar archive by default.
For an app that will be shipped to production, you should sign your application. See Where to buy code signing certificates.
See node_modules/electron-builder/out/index.d.ts
. Typings for TypeScript are provided and also can be found here.
Code snippet provided below is also shown "in action" here as well.
1"use strict" 2 3const builder = require("electron-builder") 4const Platform = builder.Platform 5 6// Promise is returned 7builder.build({ 8 targets: Platform.MAC.createTarget(), 9 config: { 10 "//": "build options, see https://goo.gl/QQXmcV" 11 } 12}) 13 .then(() => { 14 // handle result 15 }) 16 .catch((error) => { 17 // handle error 18 })
Set the DEBUG
environment variable to debug what electron-builder is doing:
1DEBUG=electron-builder
FPM_DEBUG
env to add more details about building linux targets (except snap and appimage).
DEBUG_DMG=true
env var to add more debugging/verbosity from hdiutil
(macOS).
!!! tip "cmd"
On Windows the environment variable is set using the set command.
bash set DEBUG=electron-builder
!!! tip "PowerShell"
PowerShell uses different syntax to set environment variables.
bash $env:DEBUG=electron-builder
We do this open source work in our free time. If you'd like us to invest more time on it, please donate.
No vulnerabilities found.
Reason
30 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
binaries present in source code
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 6
Details
Reason
Found 10/27 approved changesets -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
12 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-09
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More