客户端pkg包安装前必须关闭已打开的应用
This commit is contained in:
parent
8e2b2947ae
commit
674c5a11c1
1
electron/build.js
vendored
1
electron/build.js
vendored
@ -136,6 +136,7 @@ function start(data, publish) {
|
|||||||
econfig.build.appId = data.id;
|
econfig.build.appId = data.id;
|
||||||
econfig.build.artifactName = getDomain(data.url) + "-v${version}-${os}-${arch}.${ext}";
|
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.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');
|
fs.writeFileSync(packageFile, JSON.stringify(econfig, null, 2), 'utf8');
|
||||||
// build
|
// build
|
||||||
child_process.spawnSync("npm", ["run", data.platform + (publish === true ? "-publish" : "")], {stdio: "inherit", cwd: "electron"});
|
child_process.spawnSync("npm", ["run", data.platform + (publish === true ? "-publish" : "")], {stdio: "inherit", cwd: "electron"});
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "DooTask",
|
"name": "DooTask",
|
||||||
"version": "0.5.51",
|
"version": "0.5.52",
|
||||||
"description": "DooTask is task management system.",
|
"description": "DooTask is task management system.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -79,6 +79,7 @@
|
|||||||
},
|
},
|
||||||
"pkg": {
|
"pkg": {
|
||||||
"installLocation": "/Applications",
|
"installLocation": "/Applications",
|
||||||
|
"mustClose": [],
|
||||||
"allowAnywhere": true,
|
"allowAnywhere": true,
|
||||||
"allowCurrentUserHome": true,
|
"allowCurrentUserHome": true,
|
||||||
"allowRootDirectory": true,
|
"allowRootDirectory": true,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "DooTask",
|
"name": "DooTask",
|
||||||
"version": "0.5.51",
|
"version": "0.5.52",
|
||||||
"description": "DooTask is task management system.",
|
"description": "DooTask is task management system.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "./cmd dev",
|
"start": "./cmd dev",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user