pkg
Create a .pkg file for your Electron app on macOS using Electron Forge.
Last updated
Was this helpful?
Was this helpful?
npm install --save-dev @electron-forge/maker-pkgmodule.exports = {
makers: [
{
name: '@electron-forge/maker-pkg',
config: {
keychain: 'my-secret-ci-keychain'
// other configuration options
}
}
]
};my-app
├─── forge.config.js
└─── scripts
├── postinstall
└── preinstallconst path = require('node:path');
module.exports = {
makers: [
{
name: '@electron-forge/maker-pkg',
config: {
scripts: path.join(__dirname, 'scripts')
}
}
]
};