electron-updater-for-render 1.1.2-beta.1 → 1.1.2-beta.3

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/bin/cli.cjs CHANGED
@@ -23,6 +23,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  mod
24
24
  ));
25
25
 
26
+ // node_modules/tsup/assets/cjs_shims.js
27
+ var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
28
+ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
29
+
26
30
  // src/bin/cli.ts
27
31
  var import_node_util = require("util");
28
32
  var import_node_path = __toESM(require("path"), 1);
@@ -106,9 +110,8 @@ async function createUpdatePackage(options) {
106
110
  }
107
111
 
108
112
  // src/bin/cli.ts
109
- var import_meta = {};
110
- var require2 = (0, import_node_module.createRequire)(import_meta.url);
111
- var __filename = (0, import_node_url.fileURLToPath)(import_meta.url);
113
+ var require2 = (0, import_node_module.createRequire)(importMetaUrl);
114
+ var __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
112
115
  async function main() {
113
116
  const args = process.argv.slice(2);
114
117
  const options = (0, import_node_util.parseArgs)({
@@ -146,7 +149,7 @@ async function main() {
146
149
  const fullConfigPath = import_node_path.default.resolve(cwd, configPath);
147
150
  if (import_node_fs.default.existsSync(fullConfigPath)) {
148
151
  try {
149
- const jiti = require2("jiti")(__filename, {
152
+ const jiti = require2("jiti")(__filename2, {
150
153
  interopDefault: true,
151
154
  cache: false
152
155
  });
package/dist/bin/cli.js CHANGED
@@ -84,7 +84,7 @@ async function createUpdatePackage(options) {
84
84
 
85
85
  // src/bin/cli.ts
86
86
  var require2 = createRequire(import.meta.url);
87
- var __filename = fileURLToPath(import.meta.url);
87
+ var __filename2 = fileURLToPath(import.meta.url);
88
88
  async function main() {
89
89
  const args = process.argv.slice(2);
90
90
  const options = parseArgs({
@@ -122,7 +122,7 @@ async function main() {
122
122
  const fullConfigPath = path2.resolve(cwd, configPath);
123
123
  if (fs2.existsSync(fullConfigPath)) {
124
124
  try {
125
- const jiti = require2("jiti")(__filename, {
125
+ const jiti = require2("jiti")(__filename2, {
126
126
  interopDefault: true,
127
127
  cache: false
128
128
  });
@@ -297,9 +297,9 @@ var RenderUpdater = class {
297
297
  if (info.forceUpdate === "prompt") {
298
298
  import_electron.dialog.showMessageBoxSync({
299
299
  type: "warning",
300
- title: "\u6700\u9AD8\u7EA7\u522B\u5F3A\u5236\u63A5\u7BA1",
301
- message: "\u7D27\u6025\u707E\u96BE\u4FEE\u590D\u7EC4\u4EF6\u5DF2\u7ECF\u4E0B\u8F7D\u5C31\u7EEA\u3002\u5373\u5C06\u5F3A\u884C\u963B\u65AD\u5E76\u91CD\u542F\u5E94\u7528\u8FDB\u884C\u6302\u8F7D\u3002",
302
- buttons: ["\u5F3A\u5236\u63A5\u7BA1"]
300
+ title: "\u4E0B\u8F7D\u5B8C\u6210",
301
+ message: "\u6700\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\u5B8C\u6BD5\u3002\u5373\u5C06\u91CD\u542F\u7A0B\u5E8F\u4EE5\u5E94\u7528\u66F4\u65B0\u3002",
302
+ buttons: ["\u6211\u77E5\u9053\u4E86"]
303
303
  });
304
304
  }
305
305
  doInstall().catch(console.error);
@@ -307,7 +307,7 @@ var RenderUpdater = class {
307
307
  import_electron.dialog.showMessageBoxSync({
308
308
  type: "info",
309
309
  title: "\u4E0B\u8F7D\u5B8C\u6210",
310
- message: "\u6700\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\u5B8C\u6BD5\u3002\u70B9\u51FB\u786E\u5B9A\u91CD\u542F\u5E94\u7528\u4EE5\u5E94\u7528\u66F4\u65B0\u3002",
310
+ message: "\u6700\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\u5B8C\u6BD5\u3002\u70B9\u51FB\u786E\u5B9A\u91CD\u542F\u7A0B\u5E8F\u4EE5\u5B89\u88C5\u66F4\u65B0\u3002",
311
311
  buttons: ["\u786E\u5B9A"]
312
312
  });
313
313
  doInstall().catch(console.error);
@@ -329,13 +329,12 @@ var RenderUpdater = class {
329
329
  if (info.forceUpdate === "prompt") {
330
330
  import_electron.dialog.showMessageBoxSync({
331
331
  type: "warning",
332
- title: "\u{1F6A8} \u53D1\u73B0\u751F\u6B7B\u6538\u5173\u7684\u6838\u5FC3\u66F4\u65B0",
333
- message: `\u63A2\u6D4B\u5230\u7CFB\u7EDF\u81F4\u547D Bug \u7684\u4FEE\u590D\u7248\u672C (v${info.version})\u3002
334
- \u5E94\u7528\u73AF\u5883\u5373\u523B\u88AB\u9501\u5B9A\uFF0C\u5F00\u59CB\u5F3A\u5236\u6267\u884C\u5168\u91CF\u4E0B\u8F7D\uFF0C\u4EFB\u4F55\u4EBA\u90FD\u65E0\u6CD5\u4E2D\u6B62\uFF01
332
+ title: "\u53D1\u73B0\u65B0\u7248\u672C",
333
+ message: `\u53D1\u73B0\u65B0\u7248\u672C (v${info.version})\u3002
335
334
 
336
335
  \u66F4\u65B0\u65E5\u5FD7\uFF1A
337
- ${info.releaseNotes || "\u707E\u5907\u9884\u6848\u5F3A\u5236\u6FC0\u6D3B\uFF0C\u65E0\u53EF\u5949\u544A\u3002"}`,
338
- buttons: ["\u4E56\u4E56\u5347\u7EA7"]
336
+ ${info.releaseNotes || "\u672C\u6B21\u66F4\u65B0\u4E3A\u5F3A\u5236\u66F4\u65B0\uFF0C\u65E0\u6CD5\u8DF3\u8FC7\u3002"}`,
337
+ buttons: ["\u7ACB\u5373\u66F4\u65B0"]
339
338
  });
340
339
  }
341
340
  await doDownload();
@@ -263,9 +263,9 @@ var RenderUpdater = class {
263
263
  if (info.forceUpdate === "prompt") {
264
264
  dialog.showMessageBoxSync({
265
265
  type: "warning",
266
- title: "\u6700\u9AD8\u7EA7\u522B\u5F3A\u5236\u63A5\u7BA1",
267
- message: "\u7D27\u6025\u707E\u96BE\u4FEE\u590D\u7EC4\u4EF6\u5DF2\u7ECF\u4E0B\u8F7D\u5C31\u7EEA\u3002\u5373\u5C06\u5F3A\u884C\u963B\u65AD\u5E76\u91CD\u542F\u5E94\u7528\u8FDB\u884C\u6302\u8F7D\u3002",
268
- buttons: ["\u5F3A\u5236\u63A5\u7BA1"]
266
+ title: "\u4E0B\u8F7D\u5B8C\u6210",
267
+ message: "\u6700\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\u5B8C\u6BD5\u3002\u5373\u5C06\u91CD\u542F\u7A0B\u5E8F\u4EE5\u5E94\u7528\u66F4\u65B0\u3002",
268
+ buttons: ["\u6211\u77E5\u9053\u4E86"]
269
269
  });
270
270
  }
271
271
  doInstall().catch(console.error);
@@ -273,7 +273,7 @@ var RenderUpdater = class {
273
273
  dialog.showMessageBoxSync({
274
274
  type: "info",
275
275
  title: "\u4E0B\u8F7D\u5B8C\u6210",
276
- message: "\u6700\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\u5B8C\u6BD5\u3002\u70B9\u51FB\u786E\u5B9A\u91CD\u542F\u5E94\u7528\u4EE5\u5E94\u7528\u66F4\u65B0\u3002",
276
+ message: "\u6700\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\u5B8C\u6BD5\u3002\u70B9\u51FB\u786E\u5B9A\u91CD\u542F\u7A0B\u5E8F\u4EE5\u5B89\u88C5\u66F4\u65B0\u3002",
277
277
  buttons: ["\u786E\u5B9A"]
278
278
  });
279
279
  doInstall().catch(console.error);
@@ -295,13 +295,12 @@ var RenderUpdater = class {
295
295
  if (info.forceUpdate === "prompt") {
296
296
  dialog.showMessageBoxSync({
297
297
  type: "warning",
298
- title: "\u{1F6A8} \u53D1\u73B0\u751F\u6B7B\u6538\u5173\u7684\u6838\u5FC3\u66F4\u65B0",
299
- message: `\u63A2\u6D4B\u5230\u7CFB\u7EDF\u81F4\u547D Bug \u7684\u4FEE\u590D\u7248\u672C (v${info.version})\u3002
300
- \u5E94\u7528\u73AF\u5883\u5373\u523B\u88AB\u9501\u5B9A\uFF0C\u5F00\u59CB\u5F3A\u5236\u6267\u884C\u5168\u91CF\u4E0B\u8F7D\uFF0C\u4EFB\u4F55\u4EBA\u90FD\u65E0\u6CD5\u4E2D\u6B62\uFF01
298
+ title: "\u53D1\u73B0\u65B0\u7248\u672C",
299
+ message: `\u53D1\u73B0\u65B0\u7248\u672C (v${info.version})\u3002
301
300
 
302
301
  \u66F4\u65B0\u65E5\u5FD7\uFF1A
303
- ${info.releaseNotes || "\u707E\u5907\u9884\u6848\u5F3A\u5236\u6FC0\u6D3B\uFF0C\u65E0\u53EF\u5949\u544A\u3002"}`,
304
- buttons: ["\u4E56\u4E56\u5347\u7EA7"]
302
+ ${info.releaseNotes || "\u672C\u6B21\u66F4\u65B0\u4E3A\u5F3A\u5236\u66F4\u65B0\uFF0C\u65E0\u6CD5\u8DF3\u8FC7\u3002"}`,
303
+ buttons: ["\u7ACB\u5373\u66F4\u65B0"]
305
304
  });
306
305
  }
307
306
  await doDownload();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-updater-for-render",
3
- "version": "1.1.2-beta.1",
3
+ "version": "1.1.2-beta.3",
4
4
  "description": "A lightweight incremental updater for Electron renderer processes",
5
5
  "type": "module",
6
6
  "bin": {
@@ -54,4 +54,4 @@
54
54
  ],
55
55
  "author": "",
56
56
  "license": "MIT"
57
- }
57
+ }