electron-version-deployer-cli 0.4.0 → 0.4.1
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 +3 -1
- package/dist/types/EVDConfigType.d.ts +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -599,6 +599,8 @@ commander.program.command("deploy").description("执行部署").action(async (so
|
|
|
599
599
|
});
|
|
600
600
|
async function deployExtraFolders(configs) {
|
|
601
601
|
const extraFolders = configs.extraFolders;
|
|
602
|
+
if (!extraFolders)
|
|
603
|
+
return;
|
|
602
604
|
let folders = [];
|
|
603
605
|
if (typeof extraFolders === "function") {
|
|
604
606
|
folders = await extraFolders();
|
|
@@ -724,4 +726,4 @@ async function installPrebuilt(configs) {
|
|
|
724
726
|
}
|
|
725
727
|
commander.program.description(
|
|
726
728
|
"Electron 版本部署 CLI,简化你的 Electron 软件更新,让一切变得简单。"
|
|
727
|
-
).helpOption("-h, --help", "使用帮助").version("0.4.
|
|
729
|
+
).helpOption("-h, --help", "使用帮助").version("0.4.1", "-V, --version", "显示版本号").parse(process.argv);
|
|
@@ -11,7 +11,7 @@ export type EVDConfigType = {
|
|
|
11
11
|
codes: string;
|
|
12
12
|
packageJSON: string;
|
|
13
13
|
};
|
|
14
|
-
extraFolders
|
|
14
|
+
extraFolders?: string[] | (() => Promise<string[]>) | (() => string[]);
|
|
15
15
|
netlify?: {
|
|
16
16
|
url: string;
|
|
17
17
|
token: string;
|