electron-version-deployer-cli 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +4 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -15,6 +15,7 @@ const jsdom = require("jsdom");
|
|
|
15
15
|
const DOMPurify = require("dompurify");
|
|
16
16
|
const archiver = require("archiver");
|
|
17
17
|
const node_https = require("node:https");
|
|
18
|
+
const node_os = require("node:os");
|
|
18
19
|
const download = require("download");
|
|
19
20
|
const pkgPath = pkgUp.sync();
|
|
20
21
|
function r(...paths) {
|
|
@@ -382,7 +383,8 @@ commander.program.command("deploy").description("执行部署").action(async (so
|
|
|
382
383
|
});
|
|
383
384
|
async function deploy(configs) {
|
|
384
385
|
console.log(logSymbols.info, "开始部署", r());
|
|
385
|
-
const
|
|
386
|
+
const cmd = node_os.platform() === "win32" ? "netlify.cmd" : "netlify";
|
|
387
|
+
const output = node_child_process.spawn(cmd, [
|
|
386
388
|
"deploy",
|
|
387
389
|
"--dir",
|
|
388
390
|
r("node_modules/.evd"),
|
|
@@ -495,4 +497,4 @@ async function installPrebuilt(configs) {
|
|
|
495
497
|
}
|
|
496
498
|
commander.program.description(
|
|
497
499
|
"Electron 版本部署 CLI,简化你的 Electron 软件更新,让一切变得简单。"
|
|
498
|
-
).helpOption("-h, --help", "使用帮助").version("0.0.
|
|
500
|
+
).helpOption("-h, --help", "使用帮助").version("0.0.13", "-V, --version", "显示版本号").parse(process.argv);
|