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

View File

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

View File

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