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
宇天 2020-11-16 11:22:17 +08:00
parent 039b70c4b6
commit 6d5c72f235
3 changed files with 19 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{
"name": "sonist",
"version": "1.2.0",
"name": "top.yutent.sonist",
"version": "2.0.0-alpha-1",
"description": "Music Player",
"main": "src/main.js",
"scripts": {
@ -9,26 +9,30 @@
},
"author": {
"name": "yutent",
"email": "yutent@doui.cc"
"email": "yutent.io@gmail.com"
},
"homepage": "https://yutent.me",
"license": "MIT",
"dependencies": {
"crypto.js": "^1.2.0",
"iofs": "^1.1.0"
"crypto.js": "^2.0.2",
"iofs": "^1.5.1"
},
"devDependencies": {
"electron": "^7.1.0",
"electron": "^10.0.0",
"electron-builder": "^22.1.0"
},
"build": {
"appId": "cc.doui.sonist",
"appId": "top.yutent.sonist",
"productName": "Sonist",
"copyright": "Copyright © 2019 ${author}",
"directories": {
"buildResources": "icons",
"output": "build"
},
"electronDownload": {
"version": "10.1.5",
"mirror": "https://npm.taobao.org/mirrors/electron/"
},
"files": [
"src/**/*",
"node_modules/iofs/*",

View File

@ -20,7 +20,7 @@ import Api from '/js/api.js'
import Artist from '/js/modules/artist.js'
import Local from '/js/modules/local.js'
import Profile from '/js/modules/profile.js'
// import Profile from '/js/modules/profile.js'
import Search from '/js/modules/search.js'
import KTV from '/js/modules/ktv.js'
@ -32,13 +32,13 @@ const fs = require('iofs')
const path = require('path')
const { remote, ipcRenderer } = require('electron')
const { createDesktopLrcWindow, createMiniWindow } = remote.require(
'./tools/windows'
)
// const { createDesktopLrcWindow, createMiniWindow } = remote.require(
// './tools/windows'
// )
const WIN = remote.getCurrentWindow()
const __LRC__ = createDesktopLrcWindow(screen)
const __MINI__ = createMiniWindow(screen)
// const WIN = remote.getCurrentWindow()
// const __LRC__ = createDesktopLrcWindow(screen)
// const __MINI__ = createMiniWindow(screen)
const PLAY_MODE = {
0: 'all',

View File

@ -10,10 +10,7 @@ import '/lib/form/input.js'
import '/lib/form/button.js'
import '/lib/form/select.js'
const {
remote: { app, dialog },
ipcRenderer
} = require('electron')
const { remote: { app, dialog } = {}, ipcRenderer } = require('electron')
const log = console.log