This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
appcat
/
sonist
Archived
1
0
Fork 0
宇天 2019-08-12 21:26:41 +08:00
parent a886037773
commit 8d9f8b9b26
3 changed files with 7 additions and 11 deletions

View File

@ -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",

View File

@ -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')

View File

@ -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: '显示主窗口',