feat: 完善mac打包规则 修复 icon显示问题

This commit is contained in:
alger
2024-11-20 22:44:17 +08:00
parent f320f4760b
commit 3027a5f6ff
6 changed files with 54 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function createWindow() {
} else {
win.loadURL(`file://${__dirname}/dist/index.html`);
}
const image = nativeImage.createFromPath(path.join(__dirname, 'public/icon.png'));
const image = nativeImage.createFromPath(path.join(__dirname, 'public/icon_16x16.png')).resize({ width: 16, height: 16 });
const tray = new Tray(image);
// 创建一个上下文菜单