Makers
Generate platform specific distributables for Electron apps using Electron Forge.
Makers are Electron Forge's way of taking your packaged application and making platform specific distributables like DMG, EXE, or Flatpak files (amongst others).
Each maker has to be configured in the makers section of your forge configuration with which platforms to run for and the maker specific config. E.g.
package.json
forge.config.js
1
// If your config is only in package.json:
2
// Only showing the relevant configuration for brevity
3
{
4
"config": {
5
"forge": {
6
"makers": [
7
{
8
"name": "@electron-forge/maker-zip",
9
"platforms": ["darwin", "linux"], // optional
10
"config": {
11
// Config here
12
}
13
}
14
]
15
}
16
}
Copied!
1
// If you have set config.forge to a JavaScript file path in package.json:
2
// Only showing the relevant configuration for brevity
3
module.exports = {
4
makers: [
5
{
6
name: '@electron-forge/maker-zip',
7
platforms: ['darwin', 'linux'],
8
config: {
9
// Config here
10
}
11
}
12
]
13
}
Copied!
Please note that all makers have logical defaults for the platforms value so you normally don't need to specify that property.
Last modified 1mo ago
Copy link