muon-ui 0.10.0 → 0.11.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 (39) hide show
  1. package/dist/cli.cjs +19 -19
  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-bootstrap +0 -0
  6. package/dist/native/linux-amd64/muon-builder +0 -0
  7. package/dist/native/linux-amd64/muon-runtime-helper +0 -0
  8. package/dist/native/linux-arm64/muon-bootstrap +0 -0
  9. package/dist/native/linux-arm64/muon-builder +0 -0
  10. package/dist/native/linux-arm64/muon-runtime-helper +0 -0
  11. package/dist/native/linux-armhf/muon-bootstrap +0 -0
  12. package/dist/native/linux-armhf/muon-builder +0 -0
  13. package/dist/native/linux-armhf/muon-runtime-helper +0 -0
  14. package/dist/native/windows-amd64/muon-bootstrap.exe +0 -0
  15. package/dist/native/windows-amd64/muon-builder.exe +0 -0
  16. package/dist/native/windows-i686/muon-bootstrap.exe +0 -0
  17. package/dist/native/windows-i686/muon-builder.exe +0 -0
  18. package/dist/runtime/linux-amd64/libmuon-ui.so +0 -0
  19. package/dist/runtime/linux-amd64/muon-core +0 -0
  20. package/dist/runtime/linux-arm64/libmuon-ui.so +0 -0
  21. package/dist/runtime/linux-arm64/muon-core +0 -0
  22. package/dist/runtime/linux-armhf/libmuon-ui.so +0 -0
  23. package/dist/runtime/linux-armhf/muon-core +0 -0
  24. package/dist/runtime/windows-amd64/libcardio.dll +0 -0
  25. package/dist/runtime/windows-amd64/libmuon-ui.dll +0 -0
  26. package/dist/runtime/windows-amd64/muon-core.exe +0 -0
  27. package/dist/runtime/windows-i686/libcardio.dll +0 -0
  28. package/dist/runtime/windows-i686/libmuon-ui.dll +0 -0
  29. package/dist/runtime/windows-i686/muon-core.exe +0 -0
  30. package/dist/{vite-internals-DnxA6RxV.cjs → vite-internals-Dha0jYI8.cjs} +94 -92
  31. package/dist/vite-internals-Dha0jYI8.cjs.map +1 -0
  32. package/dist/vite.cjs +170 -18
  33. package/dist/vite.cjs.map +1 -1
  34. package/dist/vite.mjs +250 -96
  35. package/dist/vite.mjs.map +1 -1
  36. package/muon.d.ts +127 -78
  37. package/package.json +7 -7
  38. package/vite.d.ts +59 -59
  39. package/dist/vite-internals-DnxA6RxV.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.10.0
4
+ * version: 0.11.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: 7bf3c14f4ebc9ae604525ea66a10289463c086ab
9
+ * git.commit.hash: db70f7643ac9fb1f61ab79f1de55c3dd8686de8d
10
10
  */
11
- const require_vite_internals = require("./vite-internals-DnxA6RxV.cjs");
11
+ const require_vite_internals = require("./vite-internals-Dha0jYI8.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");
@@ -79,7 +79,7 @@ var loadViteMuonOptions = async (cwd) => {
79
79
  var resolveProjectConfigPath = async (root, configPath) => {
80
80
  if (configPath !== void 0) {
81
81
  const resolvedPath = resolveFromRoot(root, configPath);
82
- if (!await fileExists(resolvedPath)) throw new Error(`Muon config file does not exist: ${resolvedPath}`);
82
+ if (!await fileExists(resolvedPath)) throw new Error(`muon config file does not exist: ${resolvedPath}`);
83
83
  return resolvedPath;
84
84
  }
85
85
  for (const fileName of defaultProjectConfigFileNames) {
@@ -130,9 +130,9 @@ var assertDevelopmentAssetDirectory = async (assetSourcePath) => {
130
130
  try {
131
131
  await (0, node_fs_promises.access)(assetSourcePath, node_fs.constants.F_OK);
132
132
  } catch {
133
- throw new Error(`Muon run asset source does not exist: ${assetSourcePath}`);
133
+ throw new Error(`muon run asset source does not exist: ${assetSourcePath}`);
134
134
  }
135
- throw new Error(`Muon run asset source must be a directory: ${assetSourcePath}`);
135
+ throw new Error(`muon run asset source must be a directory: ${assetSourcePath}`);
136
136
  };
137
137
  var resolveAssetSource = async (root, assetSourcePath, projectConfig) => {
138
138
  const configuredAssetSourcePath = readConfigAssetSourcePath(projectConfig.config);
@@ -192,10 +192,10 @@ var runMuonExecutable = async (muonExecutablePath, configPaths, environment) =>
192
192
  return exitCode;
193
193
  };
194
194
  /**
195
- * Launches Muon directly against local development assets.
195
+ * Launches muon directly against local development assets.
196
196
  *
197
197
  * @param options Development startup options.
198
- * @returns Development startup result after the Muon process exits.
198
+ * @returns Development startup result after the muon process exits.
199
199
  */
200
200
  var runMuonDev = async (options = {}) => {
201
201
  const loadedViteOptions = await loadViteMuonOptions((0, node_path.resolve)(options.root ?? process.cwd()));
@@ -304,7 +304,7 @@ var resolveMetadata = (packageJson, options) => {
304
304
  if (packageNameSource === void 0 || packageNameSource.trim() === "") throw new Error("package.json name is required for muon pack.");
305
305
  const version = options.packageVersion ?? (typeof packageJson.version === "string" ? packageJson.version : void 0);
306
306
  if (version === void 0 || version.trim() === "") throw new Error("package.json version is required for muon pack.");
307
- const description = options.description ?? (typeof packageJson.description === "string" ? packageJson.description : "Muon application");
307
+ const description = options.description ?? (typeof packageJson.description === "string" ? packageJson.description : "muon application");
308
308
  const author = options.author ?? stringifyAuthor(packageJson.author) ?? "Unknown";
309
309
  return {
310
310
  packageName: sanitizePackageName(packageNameSource),
@@ -481,7 +481,7 @@ var packageDeb = async (root, target, metadata, artifactsRoot, packageBuildRoot,
481
481
  await (0, node_fs_promises.mkdir)(installedDist, { recursive: true });
482
482
  await (0, node_fs_promises.cp)(target.outputPath, installedDist, { recursive: true });
483
483
  if (linuxSandbox === "setuid") {
484
- if (target.runtimeHelperPath === void 0) throw new Error(`Muon runtime helper is unavailable for setuid deb target: ${target.target}`);
484
+ if (target.runtimeHelperPath === void 0) throw new Error(`muon runtime helper is unavailable for setuid deb target: ${target.target}`);
485
485
  await (0, node_fs_promises.chmod)((0, node_path.join)(installedDist, runtimeHelperExecutableName), 2541);
486
486
  }
487
487
  await (0, node_fs_promises.writeFile)((0, node_path.join)(installedDist, "muon-install.json"), `${JSON.stringify({
@@ -676,7 +676,7 @@ var reapplyPackWindowsResources = async (targets, resource, root, environment) =
676
676
  }
677
677
  };
678
678
  /**
679
- * Runs the Muon build sequence and creates redistributable packages.
679
+ * Runs the muon build sequence and creates redistributable packages.
680
680
  *
681
681
  * @param options Pack options.
682
682
  * @returns Generated package artifacts.
@@ -783,8 +783,8 @@ var packMuonApp = async (options) => {
783
783
  };
784
784
  //#endregion
785
785
  //#region src/generated/packageMetadata.ts
786
- var version = "0.10.0";
787
- var git_commit_hash = "7bf3c14f4ebc9ae604525ea66a10289463c086ab";
786
+ var version = "0.11.0";
787
+ var git_commit_hash = "db70f7643ac9fb1f61ab79f1de55c3dd8686de8d";
788
788
  //#endregion
789
789
  //#region src/cli.ts
790
790
  var readTargetValues = (value) => {
@@ -974,22 +974,22 @@ var createCliCommand = () => {
974
974
  program.outputHelp({ error: true });
975
975
  process.exitCode = 1;
976
976
  });
977
- program.command("build").description("Build CEF-free Muon app distribution directories").option("--target <target>", "public target or comma-separated public targets", appendTargetValues, []).option("--all", "build all supported targets").option("--assets <path>", "asset root path").option("--config <path>", "muon config path").option("--icon <path>", "static application PNG icon path").option("--windows-icon <path>", "Windows PNG icon resource path").option("--windows-product-name <name>", "Windows product name").option("--windows-file-description <text>", "Windows file description").option("--windows-company-name <name>", "Windows company name").option("--windows-version <version>", "Windows resource version").option("--windows-copyright <text>", "Windows legal copyright").option("--linux-desktop-id <id>", "Linux desktop entry identifier").option("--linux-name <name>", "Linux desktop display name").option("--linux-comment <text>", "Linux desktop comment").option("--linux-icon <path>", "Linux desktop PNG icon path").option("--linux-categories <list>", "Linux desktop categories").option("--linux-startup-notify <boolean>", "Linux startup notification").option("--out-dir <path>", "output root directory").option("--name <name>", "launcher file name").option("--app-id <id>", "stable application identifier").option("--package-directory <path>", "Muon package dist directory").option("--json", "write result as JSON").action(async (options) => {
977
+ program.command("build").description("Build CEF-free muon app distribution directories").option("--target <target>", "public target or comma-separated public targets", appendTargetValues, []).option("--all", "build all supported targets").option("--assets <path>", "asset root path").option("--config <path>", "muon config path").option("--icon <path>", "static application PNG icon path").option("--windows-icon <path>", "Windows PNG icon resource path").option("--windows-product-name <name>", "Windows product name").option("--windows-file-description <text>", "Windows file description").option("--windows-company-name <name>", "Windows company name").option("--windows-version <version>", "Windows resource version").option("--windows-copyright <text>", "Windows legal copyright").option("--linux-desktop-id <id>", "Linux desktop entry identifier").option("--linux-name <name>", "Linux desktop display name").option("--linux-comment <text>", "Linux desktop comment").option("--linux-icon <path>", "Linux desktop PNG icon path").option("--linux-categories <list>", "Linux desktop categories").option("--linux-startup-notify <boolean>", "Linux startup notification").option("--out-dir <path>", "output root directory").option("--name <name>", "launcher file name").option("--app-id <id>", "stable application identifier").option("--package-directory <path>", "muon package dist directory").option("--json", "write result as JSON").action(async (options) => {
978
978
  await runBuildCommand(options);
979
979
  });
980
- program.command("pack").description("Build and package a Muon app").option("--type <type>", "package type or comma-separated package types: zip, tar.gz, tgz, deb, nsis (default: all)", appendPackTypeValues).option("--target <target>", "public target, platform, arch, or comma-separated selectors", appendTargetValues, []).option("--all", "build all supported targets").option("--config <path>", "muon config path").option("--icon <path>", "static application PNG icon path").option("--windows-icon <path>", "Windows PNG icon resource path").option("--windows-product-name <name>", "Windows product name").option("--windows-file-description <text>", "Windows file description").option("--windows-company-name <name>", "Windows company name").option("--windows-version <version>", "Windows resource version").option("--windows-copyright <text>", "Windows legal copyright").option("--linux-desktop-id <id>", "Linux desktop entry identifier").option("--linux-name <name>", "Linux desktop display name").option("--linux-comment <text>", "Linux desktop comment").option("--linux-icon <path>", "Linux desktop PNG icon path").option("--linux-categories <list>", "Linux desktop categories").option("--linux-startup-notify <boolean>", "Linux startup notification").option("--linux-sandbox <mode>", "Linux deb CEF sandbox mode: disabled, setuid").option("--name <name>", "launcher file name").option("--app-id <id>", "stable application identifier").option("--package-directory <path>", "Muon package dist directory").option("--artifacts-dir <path>", "package artifact output directory").option("--package-name <name>", "package name override").option("--package-version <version>", "package version override").option("--description <text>", "package description override").option("--author <text>", "package author override").option("--json", "write result as JSON").action(async (options) => {
980
+ program.command("pack").description("Build and package a muon app").option("--type <type>", "package type or comma-separated package types: zip, tar.gz, tgz, deb, nsis (default: all)", appendPackTypeValues).option("--target <target>", "public target, platform, arch, or comma-separated selectors", appendTargetValues, []).option("--all", "build all supported targets").option("--config <path>", "muon config path").option("--icon <path>", "static application PNG icon path").option("--windows-icon <path>", "Windows PNG icon resource path").option("--windows-product-name <name>", "Windows product name").option("--windows-file-description <text>", "Windows file description").option("--windows-company-name <name>", "Windows company name").option("--windows-version <version>", "Windows resource version").option("--windows-copyright <text>", "Windows legal copyright").option("--linux-desktop-id <id>", "Linux desktop entry identifier").option("--linux-name <name>", "Linux desktop display name").option("--linux-comment <text>", "Linux desktop comment").option("--linux-icon <path>", "Linux desktop PNG icon path").option("--linux-categories <list>", "Linux desktop categories").option("--linux-startup-notify <boolean>", "Linux startup notification").option("--linux-sandbox <mode>", "Linux deb CEF sandbox mode: disabled, setuid").option("--name <name>", "launcher file name").option("--app-id <id>", "stable application identifier").option("--package-directory <path>", "muon package dist directory").option("--artifacts-dir <path>", "package artifact output directory").option("--package-name <name>", "package name override").option("--package-version <version>", "package version override").option("--description <text>", "package description override").option("--author <text>", "package author override").option("--json", "write result as JSON").action(async (options) => {
981
981
  await runPackCommand(options);
982
982
  });
983
- const devCommand = program.command("run").description("Launch Muon directly with local development assets").option("--muon-path <path>", "Muon runtime file root").option("--cef-path <path>", "CEF file root").option("--stage-dir <path>", "prepared runtime output directory").option("--config <path>", "muon config path").option("--assets <path>", "development asset directory").option("--no-debugger", "disable Muon debugger defaults").option("--json", "write result as JSON").action(async (options) => {
983
+ const devCommand = program.command("run").description("Launch muon directly with local development assets").option("--muon-path <path>", "muon runtime file root").option("--cef-path <path>", "CEF file root").option("--stage-dir <path>", "prepared runtime output directory").option("--config <path>", "muon config path").option("--assets <path>", "development asset directory").option("--no-debugger", "disable muon debugger defaults").option("--json", "write result as JSON").action(async (options) => {
984
984
  await runDevCommand(options, devCommand);
985
985
  });
986
- program.command("init").description("Initialize Muon project helper files").action(async () => {
986
+ program.command("init").description("Initialize muon project helper files").action(async () => {
987
987
  await runInitCommand();
988
988
  });
989
- 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) => {
989
+ 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) => {
990
990
  await runPrepareCommand(options);
991
991
  });
992
- 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) => {
992
+ 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) => {
993
993
  await runEmbedConfigCommand(options);
994
994
  });
995
995
  return program;