electron 托盘应用的图标应该放在项目中的哪个位置啊,我放在build下或者static下,运行时没有问题,但通过electron-builder后,不能正确显示托盘图标,
const trayPath = path.join(__dirname, '../../build/icons/');
var trayImage = nativeImage.createFromPath(path.join(trayPath,"icon.ico"));
appTray = new Tray(trayImage);
应该放在哪里,build也能正确找到图标呀
package.json
里设置资源目录了吗?