From d22d52a317945d0832896083c41a716286b08eea Mon Sep 17 00:00:00 2001 From: hunlongyu Date: Tue, 28 Apr 2020 11:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=9E=20=E4=BF=AE=E5=A4=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background.js | 2 +- vue.config.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/background.js b/src/background.js index 3f70d71..838fde0 100644 --- a/src/background.js +++ b/src/background.js @@ -19,7 +19,7 @@ protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: tru function createWindow () { win = new BrowserWindow({ - width: 1680, + width: 1080, height: 720, frame: false, resizable: true, diff --git a/vue.config.js b/vue.config.js index 8e718e8..b32dfbc 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,7 +5,14 @@ module.exports = { }, pluginOptions: { electronBuilder: { - nodeIntegration: true + nodeIntegration: true, + builderOptions: { + nsis: { + oneClick: false, + allowToChangeInstallationDirectory: true + }, + productName: 'ZY Player' + } } } }