From ae6ecd96fdec13b5285063a1103136e533e12f26 Mon Sep 17 00:00:00 2001 From: kunkka Date: Fri, 30 Oct 2020 18:17:04 +0800 Subject: [PATCH] feat: update electron options and touchbar --- src/electron/touchbar.js | 4 +++- vue.config.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/electron/touchbar.js b/src/electron/touchbar.js index 5c9f37f..8b1023d 100644 --- a/src/electron/touchbar.js +++ b/src/electron/touchbar.js @@ -1,4 +1,5 @@ -const { app, BrowserWindow, TouchBar } = require("electron"); +// 运用 ipdMain 请求用户喜欢的歌手的数据,随机抽几个歌手进行随机 +const { TouchBar } = require("electron"); const { TouchBarLabel, TouchBarButton, TouchBarSpacer } = TouchBar; @@ -101,3 +102,4 @@ const touchBar = new TouchBar({ // }) module.exports = touchBar; + diff --git a/vue.config.js b/vue.config.js index 2a0e7e5..4ec257f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -56,7 +56,8 @@ module.exports = { productName: 'Yes Play Music', // 版权 copyright: 'Copyright © YesPlayMusic', - compression: "maximum", + // 机器好的可以打开,配置压缩 + // compression: "maximum", publish: [ { "provider": "github",