2.x
parent
a886037773
commit
8d9f8b9b26
|
@ -29,7 +29,11 @@
|
|||
"buildResources": "icons",
|
||||
"output": "build"
|
||||
},
|
||||
"files": ["src/**/*", "node_modules/iofs/*", "node_modules/crypto.js/*"],
|
||||
"files": [
|
||||
"src/**/*",
|
||||
"node_modules/iofs/*",
|
||||
"node_modules/crypto.js/*"
|
||||
],
|
||||
"mac": {
|
||||
"category": "public.app-category.music",
|
||||
"target": "dmg",
|
||||
|
|
|
@ -6,13 +6,7 @@
|
|||
|
||||
'use strict'
|
||||
|
||||
const {
|
||||
app,
|
||||
BrowserWindow,
|
||||
session,
|
||||
protocol,
|
||||
globalShortcut
|
||||
} = require('electron')
|
||||
const { app, session, protocol, globalShortcut } = require('electron')
|
||||
const path = require('path')
|
||||
const fs = require('iofs')
|
||||
const { exec } = require('child_process')
|
||||
|
|
|
@ -11,9 +11,7 @@ const path = require('path')
|
|||
const ROOT = __dirname
|
||||
|
||||
module.exports = function(win) {
|
||||
app.__TRAY__ = new Tray(
|
||||
path.resolve(__dirname, '../images/trays/trayTemplate.png')
|
||||
)
|
||||
app.__TRAY__ = new Tray(path.join(ROOT, '../images/trays/trayTemplate.png'))
|
||||
let menuList = Menu.buildFromTemplate([
|
||||
{
|
||||
label: '显示主窗口',
|
||||
|
|
Reference in New Issue