How to fix this?
I'm following this documentation: https://www.electron.build/icons.html but it does not work - in the startbar I just see the default electron icon
I see a lot of other contradicting instructions on lots of Stack overflow posts etc of things to do differently, but none of these work, and I think they might be outdated.
Not sure where else to go to to learn how to fix this. Would really appreciate advice.
My package.json is
{
"name": "testapp",
"private": true,
"version": "1.0.0",
"type": "module",
"description": "Test app.",
"license": "Apache-2.0",
"build": {
"productName": "Testapp",
"appId": "com.testapp.app",
"extraResources": [
{
"from": "build/icon.png",
"to": "icon.png"
}
],
"linux": {
"icon": "build/icons"
}
},
"scripts": {
"devrun": "npm run build && npm run start-elec-dev",
"start-elec-dev": "electron .",
"dev": "vite",
"build-and-prev": "tsc && vite build && npm run preview",
"build": "tsc && vite build && electron-builder",
"preview": "vite preview",
"start": "electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"type-check": "tsc --noEmit"
},
"devDependencies": {
...omitted, discord says message is too long - will attach below
},
"main": "dist-electron/main.js",
"dependencies": {
"electron-squirrel-startup": "^1.0.1",
"png-chunks-encode": "^1.0.0",
"png-chunks-extract": "^1.0.0",
"vite-svg-loader": "^5.1.0"
}
}
My icon files are
build
├── icon.png
└── icons
├── 128x128.png
├── 16x16.png
├── 256x256.png
├── 32x32.png
├── 512x512.png
└── 64x64.png