update
parent
cabfa462a4
commit
55bdea11bb
|
@ -19,10 +19,6 @@
|
||||||
"music-metadata": "^7.5.0",
|
"music-metadata": "^7.5.0",
|
||||||
"sqlite3": "^5.0.0"
|
"sqlite3": "^5.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
|
||||||
"electron": "^10.0.0",
|
|
||||||
"electron-builder": "^22.1.0"
|
|
||||||
},
|
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "top.yutent.sonist",
|
"appId": "top.yutent.sonist",
|
||||||
"productName": "Sonist",
|
"productName": "Sonist",
|
||||||
|
|
|
@ -8,13 +8,13 @@ import Anot from '/js/lib/anot.js'
|
||||||
import '/js/lib/scroll/index.js'
|
import '/js/lib/scroll/index.js'
|
||||||
|
|
||||||
import Keyboard from '/js/lib/keyboard/index.js'
|
import Keyboard from '/js/lib/keyboard/index.js'
|
||||||
import app from '/js/lib/socket.js'
|
// import app from '/js/lib/socket.js'
|
||||||
import fetch from '/js/lib/fetch/index.js'
|
import fetch from '/js/lib/fetch/index.js'
|
||||||
import Api from '/js/api.js'
|
import Api from '/js/api.js'
|
||||||
|
|
||||||
import Player from '/js/lib/audio/index.js'
|
import Player from '/js/lib/audio/index.js'
|
||||||
|
|
||||||
const id3 = require('music-metadata')
|
// const id3 = require('music-metadata')
|
||||||
|
|
||||||
const MODE_DICT = { 1: 'all', 2: 'single', 3: 'random' }
|
const MODE_DICT = { 1: 'all', 2: 'single', 3: 'random' }
|
||||||
|
|
||||||
|
|
|
@ -23,13 +23,13 @@ exports.createMainWindow = function(icon) {
|
||||||
resizable: false,
|
resizable: false,
|
||||||
maximizable: false,
|
maximizable: false,
|
||||||
icon,
|
icon,
|
||||||
transparent: true,
|
// transparent: true,
|
||||||
vibrancy: 'dark',
|
vibrancy: 'dark',
|
||||||
visualEffectState: 'active',
|
visualEffectState: 'active',
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
webSecurity: false,
|
webSecurity: false,
|
||||||
experimentalFeatures: true,
|
experimentalFeatures: true,
|
||||||
nodeIntegration: true
|
preload: '../js/lib/socket.js'
|
||||||
},
|
},
|
||||||
show: false
|
show: false
|
||||||
})
|
})
|
||||||
|
|
Reference in New Issue