mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 03:01:12 +00:00
no message
This commit is contained in:
parent
5485f2013e
commit
7b64793449
12
electron/build.js
vendored
12
electron/build.js
vendored
@ -109,22 +109,22 @@ function startBuild(data, publish) {
|
||||
econfig.build.appId = data.id;
|
||||
econfig.build.artifactName = utils.getDomain(data.url) + "-v${version}-${os}-${arch}.${ext}";
|
||||
econfig.build.nsis.artifactName = utils.getDomain(data.url) + "-v${version}-${os}-${arch}.${ext}";
|
||||
if (publish === false || typeof process.env.APPLEID !== "string" || !process.env.APPLEID) {
|
||||
if (!process.env.APPLEID || !process.env.APPLEIDPASS) {
|
||||
delete econfig.build.afterSign;
|
||||
}
|
||||
if (publish === true && utils.isJson(data.publish)) {
|
||||
econfig.build.publish = data.publish
|
||||
}
|
||||
if (publish === true && process.env.RELEASE_BODY) {
|
||||
if (process.env.RELEASE_BODY) {
|
||||
econfig.build.releaseInfo.releaseNotes = process.env.RELEASE_BODY
|
||||
}
|
||||
if (utils.isJson(data.publish)) {
|
||||
econfig.build.publish = data.publish
|
||||
}
|
||||
fs.writeFileSync(packageFile, JSON.stringify(econfig, null, 2), 'utf8');
|
||||
// build
|
||||
child_process.spawnSync("npm" + comSuffix, ["run", data.platform + (publish === true ? "-publish" : "")], {stdio: "inherit", cwd: "electron"});
|
||||
// package.json Recovery
|
||||
fse.copySync(packageBakFile, packageFile)
|
||||
// generic publish
|
||||
if (econfig.build.publish.provider === "generic") {
|
||||
if (publish === true && econfig.build.publish.provider === "generic") {
|
||||
genericPublish(econfig.build.publish.url, config.version)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user