@widget-js/cli 1.1.4 → 1.1.5

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/lib/index.cjs CHANGED
@@ -631,6 +631,9 @@ var init_release = __esm({
631
631
  if (!import_fs8.default.existsSync(installerPath)) {
632
632
  installerPath = import_path4.default.join(`./packaged/electron-${version}-setup-win-x64.exe`);
633
633
  }
634
+ if (!import_fs8.default.existsSync(installerPath)) {
635
+ installerPath = import_path4.default.join(`./packaged/app-${version}-setup-win-x64.exe`);
636
+ }
634
637
  const updateZipPath = import_path4.default.join(`./packaged/update.zip`);
635
638
  console.log(import_chalk3.default.blue("\u538B\u7F29\u66F4\u65B0\u6587\u4EF6\u4E2D"));
636
639
  await update_zip_default("./release", updateZipPath);
package/lib/index.js CHANGED
@@ -27,7 +27,7 @@ program.command("build").description("\u6267\u884C\u7F16\u8BD1\u4EFB\u52A1").act
27
27
  });
28
28
  var typeOption = new Option("-t, --type <type>").choices(["ftp", "oss"]);
29
29
  program.command("release").description("\u901A\u8FC7FTP/OSS\u53D1\u5E03\u6587\u4EF6\uFF0C\u4EC5\u5185\u90E8\u4F7F\u7528").addOption(typeOption).action(async (options, command) => {
30
- let release = await import("./release-MNILEHXP.js");
30
+ let release = await import("./release-W3SP4YSR.js");
31
31
  await release.default(options);
32
32
  });
33
33
  program.parse(process.argv);
@@ -188,6 +188,9 @@ var release = async (options) => {
188
188
  if (!fs4.existsSync(installerPath)) {
189
189
  installerPath = path2.join(`./packaged/electron-${version}-setup-win-x64.exe`);
190
190
  }
191
+ if (!fs4.existsSync(installerPath)) {
192
+ installerPath = path2.join(`./packaged/app-${version}-setup-win-x64.exe`);
193
+ }
191
194
  const updateZipPath = path2.join(`./packaged/update.zip`);
192
195
  console.log(chalk2.blue("\u538B\u7F29\u66F4\u65B0\u6587\u4EF6\u4E2D"));
193
196
  await update_zip_default("./release", updateZipPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widget-js/cli",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "main": "lib/index.js",
5
5
  "author": "Neo Fu",
6
6
  "license": "MIT",
@@ -49,6 +49,9 @@ const release = async (options: any) => {
49
49
  if (!fs.existsSync(installerPath)) {
50
50
  installerPath = path.join(`./packaged/electron-${version}-setup-win-x64.exe`)
51
51
  }
52
+ if (!fs.existsSync(installerPath)) {
53
+ installerPath = path.join(`./packaged/app-${version}-setup-win-x64.exe`)
54
+ }
52
55
  const updateZipPath = path.join(`./packaged/update.zip`)
53
56
 
54
57
  console.log(chalk.blue('压缩更新文件中'))