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