Skip to content

Commit

Permalink
linux应用图标修复
Browse files Browse the repository at this point in the history
  • Loading branch information
GilHogan committed Jan 24, 2024
1 parent 4326197 commit 95cf779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('node:path');
const { ipcHandle } = require("./server/ipcHandle");

function createWindow() {
const iconPath = path.join(__dirname, 'public/favicon.ico');
const iconPath = path.join(__dirname, 'public/favicon.png');
// 创建浏览器窗口
const win = new BrowserWindow({
width: 1350,
Expand Down Expand Up @@ -37,9 +37,7 @@ function createWindow() {
click: () => {
// 在这里添加处理 "About" 点击事件的代码
const version = app.getVersion();
const message = `Version: ${version}
Author: hogan
License: AGPL-3.0`;
const message = `Version: ${version}\r\nAuthor: hogan \r\nLicense: AGPL-3.0`;

dialog.showMessageBox({
icon: iconPath,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"StartupNotify": "true",
"Encoding": "UTF-8"
},
"icon": "./public/",
"icon": "./public/favicon.png",
"target": [
"AppImage",
"rpm",
Expand Down

0 comments on commit 95cf779

Please sign in to comment.