From 52c07106b9af9bc8ab71a34e0acf6378ed4a82b2 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 3 Apr 2021 17:43:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A2=9E=E9=87=8F=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/gui/pkg/after-pack.js | 3 ++- packages/gui/vue.config.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/gui/pkg/after-pack.js b/packages/gui/pkg/after-pack.js index 9fd1535..e511d2c 100644 --- a/packages/gui/pkg/after-pack.js +++ b/packages/gui/pkg/after-pack.js @@ -20,7 +20,8 @@ exports.default = async function (context) { const partUpdateUrl = 'http://dev-sidecar.docmirror.cn/update/' + partUpdateFile - fs.appendFile(path.join(context.outDir, latest), `partPackage: ${partUpdateUrl}\nreleaseNotes: \n - 升级日志`, (err) => { + const latestFilePath = path.join(context.outDir, latest) + fs.appendFile(latestFilePath, `\npartPackage: ${partUpdateUrl}\nreleaseNotes: \n - 升级日志`, (err) => { if (err) { console.log('修改latest 失败') } diff --git a/packages/gui/vue.config.js b/packages/gui/vue.config.js index 801260a..2e21a46 100644 --- a/packages/gui/vue.config.js +++ b/packages/gui/vue.config.js @@ -49,7 +49,7 @@ module.exports = { productName: 'DevSidecar', // eslint-disable-next-line no-template-curly-in-string artifactName: 'DevSidecar-${version}.${ext}', - copyright: 'Copyright © 2020', + copyright: 'Copyright © 2020-2021 Greper', nsis: { oneClick: false, perMachine: true,