问题:使用nw.js打包桌面应用,按照教程完成之后发现在桌面任务栏修改的图标没有生效,还是默认图标
{
"name": "管理系统",
"version": "1.0.0",
"description": "管理系统",
"main": "/index.html",
"window": {
"title": "ERP",
"icon": "./img/ERP_256.png",
"toolbar": true,
"frame": true,
"position": "center",
"width": 1920,
"height": 1080,
"show_in_taskbar": true
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dist": "build --tasks win-x86,win-x64 --mirror https://npm.taobao.org/mirrors/nwjs/ .",
"start": "run --x86 --mirror https://npm.taobao.org/mirrors/nwjs/ ."
},
"author": "",
"license": "ISC",
"devDependencies": {
"nwjs-builder-phoenix": "^1.15.0"
},
"build": {
"nwVersion": "0.27.5"
}
}
我替换图标使用过128和256大小的png和ico图片都没有成功
打开应用之后里面的图标显示成功了,但是任务栏图标没有修改成功