Was this helpful?
module.exports = {
// ...
packagerConfig: {
icon: '/path/to/icon' // no file extension required
}
// ...
};module.exports = {
// ...
packagerConfig: {
icon: '/path/to/icon' // .icns will be inferred
}
// ...
};module.exports = {
// ...
packagerConfig: {
icon: [
'/path/to/icon.icns',
'/path/to/icon.icon'
]
}
// ...
};module.exports = {
// ...
makers: \[
{
name: '@electron-forge/maker-deb',
config: {
options: {
icon: '/path/to/icon.png'
}
}
}
]
// ...
}const { BrowserWindow } = require('electron')
const win = new BrowserWindow({
// ...
icon: '/path/to/icon.png'
})// forge.config.js
module.exports = {
// ...
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
// An URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features).
iconUrl: 'https://url/to/icon.ico',
// The ICO file to use as the icon for the generated Setup.exe
setupIcon: '/path/to/icon.ico'
}
},
{
// Path to a single image that will act as icon for the application
name: '@electron-forge/maker-deb',
config: {
options: {
icon: '/path/to/icon.png'
}
}
},
{
// Path to the icon to use for the app in the DMG window
name: '@electron-forge/maker-dmg',
config: {
icon: '/path/to/icon.icns'
}
},
{
name: '@electron-forge/maker-wix',
config: {
icon: '/path/to/icon.ico'
}
}
]
// ...
};ie4uinit.exe -show