Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(makers): config can also be a function #180

Merged
merged 4 commits into from
Jul 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
erickzhao authored Jul 4, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 07bc9c24d78f69d4da7eb25a55d429b58d7f5a40
17 changes: 9 additions & 8 deletions config/makers/README.md
Original file line number Diff line number Diff line change
@@ -35,20 +35,21 @@ Each maker has to be configured in the `makers` section of your forge configurat

{% tab title="forge.config.js" %}
```javascript
// If you have set config.forge to a JavaScript file path in package.json:
// Only showing the relevant configuration for brevity
module.exports = {
makers: [
{
name: '@electron-forge/maker-zip',
platforms: ['darwin', 'linux'],
config: {
// Config here
}
// can also be a function taking the currently built arch as a parameter and returning a config object, e.g.
//config: (arch) => ({
// ...
//})
//
}
},
{
name: '@electron-forge/maker-dmg',
platforms: ['darwin'],
config: (arch) => ({
// can also be a function taking the currently built arch as a parameter and returning a config object, e.g.
})
}
]
};