@KochiyaOcean emmmm,我修改了ico为png
在
app.js 第 22 行
const poiIconPath = path.join(
ROOT,
'assets',
'icons',
process.platform === 'linux' ? 'poi_32x32.png' : 'poi.png',
将箭头所指的poi.ico 被我修改成了poi.png (不知道你说的是不是修改这里,我看到的icon path的话是在这里定义的
然后我启动程序后上方菜单栏并没有出现poi的图标
附上终端的记录
$ npm start
> poi@10.0.0-beta.1 start /Users/my_mac/Documents/poi
> electron .
-12-26 10:09:40.845 Electron[23731:4538858] *** WARNING: Textured window is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
[INFO] Proxy listening on 59723, upstream proxy socks5://127.0.0.1:1080
[ERROR] GET http://203.104.209.134/kcs2/resources/ship/remodel/0199_1095.png?version=14 Error: read ECONNRESET
[23731:1226/101750.951071:ERROR:CONSOLE(253)] "Uncaught TypeError: Cannot read property 'nodeIntegration' of null", source: /Users/my_mac/Documents/poi/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/security-warnings.js (253)
Attempting to call a function in a renderer window that has been closed or released.
Function provided here: theme.es:226:17
Remote event names: closed