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 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.5", "-V, --version", "显示版本号").parse(process.argv);
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<void>;
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() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "electron-version-deployer-cli",
3
3
  "private": false,
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",