muon-ui 0.14.0 → 0.15.0

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.
Files changed (42) hide show
  1. package/dist/cli.cjs +15 -15
  2. package/dist/cli.cjs.map +1 -1
  3. package/dist/index.cjs +2 -2
  4. package/dist/index.mjs +2 -2
  5. package/dist/native/linux-amd64/muon-builder +0 -0
  6. package/dist/native/linux-amd64/{muon-bootstrap → muon-launcher} +0 -0
  7. package/dist/native/linux-amd64/muon-runtime-helper +0 -0
  8. package/dist/native/linux-arm64/muon-builder +0 -0
  9. package/dist/native/linux-arm64/{muon-bootstrap → muon-launcher} +0 -0
  10. package/dist/native/linux-arm64/muon-runtime-helper +0 -0
  11. package/dist/native/linux-armhf/muon-builder +0 -0
  12. package/dist/native/linux-armhf/{muon-bootstrap → muon-launcher} +0 -0
  13. package/dist/native/linux-armhf/muon-runtime-helper +0 -0
  14. package/dist/native/windows-amd64/muon-builder.exe +0 -0
  15. package/dist/native/windows-amd64/{muon-bootstrap.exe → muon-launcher.exe} +0 -0
  16. package/dist/native/windows-i686/muon-builder.exe +0 -0
  17. package/dist/native/windows-i686/{muon-bootstrap.exe → muon-launcher.exe} +0 -0
  18. package/dist/runtime/linux-amd64/CREDITS.md +31 -0
  19. package/dist/runtime/linux-amd64/muon-core +0 -0
  20. package/dist/runtime/linux-arm64/CREDITS.md +31 -0
  21. package/dist/runtime/linux-arm64/muon-core +0 -0
  22. package/dist/runtime/linux-armhf/CREDITS.md +31 -0
  23. package/dist/runtime/linux-armhf/muon-core +0 -0
  24. package/dist/runtime/windows-amd64/CREDITS.md +31 -0
  25. package/dist/runtime/windows-amd64/libcardio.dll +0 -0
  26. package/dist/runtime/windows-amd64/libmuon-ui.dll +0 -0
  27. package/dist/runtime/windows-amd64/muon-core.exe +0 -0
  28. package/dist/runtime/windows-i686/CREDITS.md +31 -0
  29. package/dist/runtime/windows-i686/libcardio.dll +0 -0
  30. package/dist/runtime/windows-i686/libmuon-ui.dll +0 -0
  31. package/dist/runtime/windows-i686/muon-core.exe +0 -0
  32. package/dist/{vite-internals-BInO_2N9.cjs → vite-internals-BNuD6EFm.cjs} +69 -70
  33. package/dist/vite-internals-BNuD6EFm.cjs.map +1 -0
  34. package/dist/vite.cjs +15 -5
  35. package/dist/vite.cjs.map +1 -1
  36. package/dist/vite.mjs +76 -67
  37. package/dist/vite.mjs.map +1 -1
  38. package/images/vscode.png +0 -0
  39. package/muon.d.ts +38 -22
  40. package/package.json +7 -7
  41. package/vite.d.ts +6 -5
  42. package/dist/vite-internals-BInO_2N9.cjs.map +0 -1
package/dist/cli.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  /*!
3
3
  * name: muon-ui
4
- * version: 0.14.0
4
+ * version: 0.15.0
5
5
  * description: A multi-platform GUI application framework that uses CEF as its backend
6
6
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
7
7
  * license: MIT
8
8
  * repository.url: https://github.com/kekyo/muon-ui.git
9
- * git.commit.hash: 90d4fe3c0d2c7ac5c81682663879ddf9966a490b
9
+ * git.commit.hash: a54e20c0496ee705422cfec16a02933146163e63
10
10
  */
11
- const require_vite_internals = require("./vite-internals-BInO_2N9.cjs");
11
+ const require_vite_internals = require("./vite-internals-BNuD6EFm.cjs");
12
12
  let commander = require("commander");
13
13
  let node_child_process = require("node:child_process");
14
14
  let node_fs = require("node:fs");
@@ -1093,8 +1093,8 @@ var packMuonApp = async (options) => {
1093
1093
  };
1094
1094
  //#endregion
1095
1095
  //#region src/generated/packageMetadata.ts
1096
- var version = "0.14.0";
1097
- var git_commit_hash = "90d4fe3c0d2c7ac5c81682663879ddf9966a490b";
1096
+ var version = "0.15.0";
1097
+ var git_commit_hash = "a54e20c0496ee705422cfec16a02933146163e63";
1098
1098
  //#endregion
1099
1099
  //#region src/cli.ts
1100
1100
  var readTargetValues = (value) => {
@@ -1121,10 +1121,10 @@ var readBooleanValue = (value, label) => {
1121
1121
  };
1122
1122
  var validateEmbedConfigOptions = (options) => {
1123
1123
  if (options.runtimePath !== void 0 && options.corePath !== void 0) throw new Error("Specify at most one of --runtime-path or --core-path.");
1124
- if (options.runtimePath === void 0 && options.corePath === void 0 && options.bootstrapPath === void 0) throw new Error("Specify at least one of --runtime-path, --core-path, or --bootstrap-path.");
1124
+ if (options.runtimePath === void 0 && options.corePath === void 0 && options.launcherPath === void 0) throw new Error("Specify at least one of --runtime-path, --core-path, or --launcher-path.");
1125
1125
  if (options.corePath !== void 0 && options.outputRuntimePath !== void 0) throw new Error("--output-runtime-path requires --runtime-path.");
1126
1126
  if (options.runtimePath !== void 0 && options.output !== void 0) throw new Error("--output requires --core-path.");
1127
- if (options.bootstrapPath === void 0 && options.outputBootstrap !== void 0) throw new Error("--output-bootstrap requires --bootstrap-path.");
1127
+ if (options.launcherPath === void 0 && options.outputLauncher !== void 0) throw new Error("--output-launcher requires --launcher-path.");
1128
1128
  };
1129
1129
  var createWindowsResourceOptions = (commandOptions) => {
1130
1130
  const options = {};
@@ -1286,20 +1286,20 @@ var runEmbedConfigCommand = async (commandOptions) => {
1286
1286
  configPath,
1287
1287
  outputRuntimePath: commandOptions.outputRuntimePath
1288
1288
  }) : void 0;
1289
- const bootstrapResult = commandOptions.bootstrapPath === void 0 ? void 0 : await require_vite_internals.embedMuonConfigInBootstrapFile({
1290
- bootstrapPath: commandOptions.bootstrapPath,
1289
+ const launcherResult = commandOptions.launcherPath === void 0 ? void 0 : await require_vite_internals.embedMuonConfigInLauncherFile({
1290
+ launcherPath: commandOptions.launcherPath,
1291
1291
  configPath,
1292
- outputPath: commandOptions.outputBootstrap
1292
+ outputPath: commandOptions.outputLauncher
1293
1293
  });
1294
- if (coreResult !== void 0 && bootstrapResult !== void 0) {
1294
+ if (coreResult !== void 0 && launcherResult !== void 0) {
1295
1295
  if (commandOptions.json === true) console.log(JSON.stringify({
1296
1296
  core: coreResult,
1297
- bootstrap: bootstrapResult
1297
+ launcher: launcherResult
1298
1298
  }, null, 2));
1299
- else console.log(`${coreResult.outputPath}\n${bootstrapResult.outputPath}`);
1299
+ else console.log(`${coreResult.outputPath}\n${launcherResult.outputPath}`);
1300
1300
  return;
1301
1301
  }
1302
- const result = coreResult ?? bootstrapResult;
1302
+ const result = coreResult ?? launcherResult;
1303
1303
  if (result === void 0) throw new Error("No embed-config target was specified.");
1304
1304
  printEmbedConfigResult(result, commandOptions.json);
1305
1305
  };
@@ -1324,7 +1324,7 @@ var createCliCommand = () => {
1324
1324
  program.command("prepare").description("Prepare a muon runtime with CEF files").requiredOption("--muon-path <path>", "muon runtime file root").option("--cef-path <path>", "CEF file root").option("--stage-dir <path>", "prepared runtime output directory").option("--target <target>", "prepare target").option("--cache-dir <path>", "CEF artifact cache directory").option("--force", "rebuild an existing prepared runtime").option("-q, --quiet", "suppress native builder progress messages").option("--json", "write result as JSON").action(async (options) => {
1325
1325
  await runPrepareCommand(options);
1326
1326
  });
1327
- program.command("embed-config").description("Embed muon.json into muon runtime files").option("--runtime-path <path>", "prepared runtime directory").option("--core-path <path>", "muon-core executable path").option("--bootstrap-path <path>", "muon-bootstrap executable path").requiredOption("--config <path>", "muon config path").option("--output-runtime-path <path>", "patched runtime output directory").option("--output <path>", "patched muon-core output path").option("--output-bootstrap <path>", "patched bootstrap output path").option("--json", "write result as JSON").action(async (options) => {
1327
+ program.command("embed-config").description("Embed muon.json into muon runtime files").option("--runtime-path <path>", "prepared runtime directory").option("--core-path <path>", "muon-core executable path").option("--launcher-path <path>", "muon-launcher executable path").requiredOption("--config <path>", "muon config path").option("--output-runtime-path <path>", "patched runtime output directory").option("--output <path>", "patched muon-core output path").option("--output-launcher <path>", "patched launcher output path").option("--json", "write result as JSON").action(async (options) => {
1328
1328
  await runEmbedConfigCommand(options);
1329
1329
  });
1330
1330
  return program;