electron-version-deployer-cli 0.0.5 → 0.0.6
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 +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +3 -0
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -495,4 +495,4 @@ async function installPrebuilt(configs) {
|
|
|
495
495
|
}
|
|
496
496
|
commander.program.description(
|
|
497
497
|
"Electron 版本部署 CLI,简化你的 Electron 软件更新,让一切变得简单。"
|
|
498
|
-
).helpOption("-h, --help", "使用帮助").version("0.0.
|
|
498
|
+
).helpOption("-h, --help", "使用帮助").version("0.0.6", "-V, --version", "显示版本号").parse(process.argv);
|
package/dist/main.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ type EVDInitPropsType = {
|
|
|
15
15
|
onError?: (err: unknown) => void;
|
|
16
16
|
};
|
|
17
17
|
export declare function EVDInit(props: EVDInitPropsType): void;
|
|
18
|
-
export declare function EVDCheckUpdate(): Promise<
|
|
18
|
+
export declare function EVDCheckUpdate(): Promise<boolean>;
|
|
19
19
|
export {};
|
package/dist/main.js
CHANGED
|
@@ -113,6 +113,9 @@ async function EVDCheckUpdate() {
|
|
|
113
113
|
const remoteVersion = versionToNum(remoteJSON.version);
|
|
114
114
|
if (remoteVersion > localVersion) {
|
|
115
115
|
await showNewVersionDialog();
|
|
116
|
+
return true;
|
|
117
|
+
} else {
|
|
118
|
+
return false;
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
121
|
async function showNewVersionDialog() {
|