- This field is primarily intended for
linux-based
systems. If this field is missing, it may cause errors onlinux-based
systems.
- It needs to be adjusted as shown below, primarily for
linux-based
systems.
- Example configuration, but it may cause the
convertIcnsToPng
error, even ifopj_decompress
is installed, the issue might not be resolved.
{
"linux": {
// On linux-based systems, icons can use the icns format
"icon": "/path/to/your/icon.icns",
"target": [
{
"target": "deb",
"arch": ["x64", "arm64"]
}
]
}
}
- A more compatible configuration approach
Prepare a 256x256-sized PNG.
Use an online free image resize tool.
Based on the 256 size, generate PNG icons for each of the following sizes: 8x8, 16x16, 32x32, 48x48, 64x64, 128x128, 256x256
Name them as
icon_${width}x${height}.png
.Store them in a folder named icons.
During the build process, point the application icon to this folder.
{
"linux": {
// This folder contains PNG icons in multiple sizes
"icon": "/path/to/your/icon/folder",
"target": [
{
"target": "deb",
"arch": ["x64", "arm64"]
}
]
}
}