From 674c5a11c1b575b0ae1dda204b98cd7e93ef74bc Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 7 Jan 2022 10:55:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AFpkg=E5=8C=85?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=89=8D=E5=BF=85=E9=A1=BB=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=B7=B2=E6=89=93=E5=BC=80=E7=9A=84=E5=BA=94=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/build.js | 1 + electron/package.json | 3 ++- package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/electron/build.js b/electron/build.js index 892fd5f5..e9a1301b 100644 --- a/electron/build.js +++ b/electron/build.js @@ -136,6 +136,7 @@ function start(data, publish) { econfig.build.appId = data.id; econfig.build.artifactName = getDomain(data.url) + "-v${version}-${os}-${arch}.${ext}"; econfig.build.nsis.artifactName = getDomain(data.url) + "-v${version}-${os}-${arch}.${ext}"; + econfig.build.pkg.mustClose = [data.id]; fs.writeFileSync(packageFile, JSON.stringify(econfig, null, 2), 'utf8'); // build child_process.spawnSync("npm", ["run", data.platform + (publish === true ? "-publish" : "")], {stdio: "inherit", cwd: "electron"}); diff --git a/electron/package.json b/electron/package.json index c3ad9039..a81a60ca 100644 --- a/electron/package.json +++ b/electron/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.5.51", + "version": "0.5.52", "description": "DooTask is task management system.", "main": "main.js", "license": "MIT", @@ -79,6 +79,7 @@ }, "pkg": { "installLocation": "/Applications", + "mustClose": [], "allowAnywhere": true, "allowCurrentUserHome": true, "allowRootDirectory": true, diff --git a/package.json b/package.json index 08896085..6c23c294 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.5.51", + "version": "0.5.52", "description": "DooTask is task management system.", "scripts": { "start": "./cmd dev",