muon-ui 0.9.0 → 0.10.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 (35) hide show
  1. package/dist/cli.cjs +122 -16
  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/muon-core +0 -0
  19. package/dist/runtime/linux-arm64/muon-core +0 -0
  20. package/dist/runtime/linux-armhf/muon-core +0 -0
  21. package/dist/runtime/windows-amd64/libcardio.dll +0 -0
  22. package/dist/runtime/windows-amd64/libmuon-ui.dll +0 -0
  23. package/dist/runtime/windows-amd64/muon-core.exe +0 -0
  24. package/dist/runtime/windows-i686/libcardio.dll +0 -0
  25. package/dist/runtime/windows-i686/libmuon-ui.dll +0 -0
  26. package/dist/runtime/windows-i686/muon-core.exe +0 -0
  27. package/dist/{vite-internals-HXgH7b5M.cjs → vite-internals-DnxA6RxV.cjs} +220 -77
  28. package/dist/vite-internals-DnxA6RxV.cjs.map +1 -0
  29. package/dist/vite.cjs +337 -18
  30. package/dist/vite.cjs.map +1 -1
  31. package/dist/vite.mjs +528 -90
  32. package/dist/vite.mjs.map +1 -1
  33. package/muon.d.ts +400 -0
  34. package/package.json +7 -7
  35. package/dist/vite-internals-HXgH7b5M.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.9.0
4
+ * version: 0.10.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: 3437b522a51d8772713b72722b109c5ff30fc711
9
+ * git.commit.hash: 7bf3c14f4ebc9ae604525ea66a10289463c086ab
10
10
  */
11
- const require_vite_internals = require("./vite-internals-HXgH7b5M.cjs");
11
+ const require_vite_internals = require("./vite-internals-DnxA6RxV.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");
@@ -274,8 +274,13 @@ var supportedPackTypes = [
274
274
  "deb",
275
275
  "nsis"
276
276
  ];
277
+ var supportedLinuxSandboxModes = ["disabled", "setuid"];
277
278
  var defaultArtifactsDirectory = "artifacts";
278
279
  var defaultPackageBuildDirectory = ".muon/pack";
280
+ var systemRuntimeRoot = "/var/lib/muon/apps";
281
+ var systemCefCacheRoot = "/var/cache/muon/cef";
282
+ var runtimeHelperExecutableName = "muon-runtime-helper";
283
+ var debGtk3RuntimeDependency = "libgtk-3-0t64 | libgtk-3-0";
279
284
  var isJsonObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
280
285
  var readJsonObjectFile = async (path) => {
281
286
  const parsed = (0, import_dist.parse)(await (0, node_fs_promises.readFile)(path, "utf8"));
@@ -319,6 +324,12 @@ var normalizePackTypes = (types) => {
319
324
  for (const type of normalized) if (!supportedPackTypes.includes(type)) throw new Error(`Unsupported muon pack type: ${type}`);
320
325
  return [...new Set(normalized)];
321
326
  };
327
+ var normalizeLinuxSandboxMode = (mode) => {
328
+ if (mode === void 0) return "disabled";
329
+ const normalized = mode.trim().toLowerCase();
330
+ if (supportedLinuxSandboxModes.includes(normalized)) return normalized;
331
+ throw new Error(`Unsupported Linux sandbox mode: ${mode}`);
332
+ };
322
333
  var packTargetSelectorTargets = {
323
334
  linux: [
324
335
  "linux-amd64",
@@ -366,6 +377,10 @@ var createPackTargetPlan = (types, targets) => {
366
377
  if (plan.length === 0) throw new Error("No valid muon pack target and type combinations.");
367
378
  return plan;
368
379
  };
380
+ var validateLinuxSandboxModeForPlan = (mode, plan) => {
381
+ if (mode === "disabled") return;
382
+ for (const entry of plan) if (require_vite_internals.getMuonTargetDescriptor(entry.target).os !== "linux" || entry.types.length !== 1 || entry.types[0] !== "deb") throw new Error("--linux-sandbox=setuid is supported only for Linux deb packages. Specify --type deb with Linux targets.");
383
+ };
369
384
  var runTool = async (executable, args, cwd, environment) => {
370
385
  const child = (0, node_child_process.spawn)(executable, [...args], {
371
386
  cwd,
@@ -451,7 +466,7 @@ var packageTarGz = async (target, metadata, artifactsRoot) => {
451
466
  path: outputPath
452
467
  };
453
468
  };
454
- var packageDeb = async (root, target, metadata, artifactsRoot, packageBuildRoot, environment) => {
469
+ var packageDeb = async (root, target, metadata, artifactsRoot, packageBuildRoot, environment, linuxSandbox, progress) => {
455
470
  const descriptor = require_vite_internals.getMuonTargetDescriptor(target.target);
456
471
  if (descriptor.os !== "linux") throw new Error(`Unsupported deb target: ${target.target}`);
457
472
  const architecture = descriptor.arch;
@@ -461,12 +476,23 @@ var packageDeb = async (root, target, metadata, artifactsRoot, packageBuildRoot,
461
476
  force: true
462
477
  });
463
478
  const installedDist = (0, node_path.join)((0, node_path.join)(packageRoot, "usr", "lib", metadata.packageName), target.distributionDirectoryName);
479
+ const privilegedPreparePath = `/usr/lib/${metadata.packageName}/${target.distributionDirectoryName}/${runtimeHelperExecutableName}`;
480
+ const systemRuntimePath = `${systemRuntimeRoot}/${metadata.packageName}/${target.target}/runtime`;
464
481
  await (0, node_fs_promises.mkdir)(installedDist, { recursive: true });
465
482
  await (0, node_fs_promises.cp)(target.outputPath, installedDist, { recursive: true });
483
+ if (linuxSandbox === "setuid") {
484
+ if (target.runtimeHelperPath === void 0) throw new Error(`Muon runtime helper is unavailable for setuid deb target: ${target.target}`);
485
+ await (0, node_fs_promises.chmod)((0, node_path.join)(installedDist, runtimeHelperExecutableName), 2541);
486
+ }
466
487
  await (0, node_fs_promises.writeFile)((0, node_path.join)(installedDist, "muon-install.json"), `${JSON.stringify({
467
488
  type: "deb",
468
489
  packageName: metadata.packageName,
469
- launcherPath: `/usr/bin/${metadata.packageName}`
490
+ launcherPath: `/usr/bin/${metadata.packageName}`,
491
+ ...linuxSandbox === "setuid" ? {
492
+ runtimeMode: "system-setuid",
493
+ systemRuntimePath,
494
+ privilegedPreparePath
495
+ } : {}
470
496
  }, void 0, 2)}\n`);
471
497
  const binPath = (0, node_path.join)(packageRoot, "usr", "bin", metadata.packageName);
472
498
  const launcherName = (0, node_path.basename)(target.launcherPath);
@@ -497,12 +523,47 @@ var packageDeb = async (root, target, metadata, artifactsRoot, packageBuildRoot,
497
523
  `Version: ${metadata.version}`,
498
524
  `Architecture: ${architecture}`,
499
525
  `Maintainer: ${metadata.author}`,
526
+ `Depends: ${debGtk3RuntimeDependency}`,
500
527
  `Description: ${metadata.description}`,
501
528
  ""
502
529
  ].join("\n"));
530
+ if (linuxSandbox === "setuid") {
531
+ const postinstPath = (0, node_path.join)(packageRoot, "DEBIAN", "postinst");
532
+ await (0, node_fs_promises.writeFile)(postinstPath, [
533
+ "#!/bin/sh",
534
+ "set -e",
535
+ `helper=${JSON.stringify(privilegedPreparePath)}`,
536
+ "if [ ! -f \"$helper\" ]; then",
537
+ " echo \"muon-runtime-helper is missing: $helper\" >&2",
538
+ " exit 1",
539
+ "fi",
540
+ "chown root:root \"$helper\"",
541
+ "chmod 4755 \"$helper\"",
542
+ "exit 0",
543
+ ""
544
+ ].join("\n"));
545
+ await (0, node_fs_promises.chmod)(postinstPath, 493);
546
+ const postrmPath = (0, node_path.join)(packageRoot, "DEBIAN", "postrm");
547
+ await (0, node_fs_promises.writeFile)(postrmPath, [
548
+ "#!/bin/sh",
549
+ "set -e",
550
+ "if [ \"$1\" = \"purge\" ]; then",
551
+ ` rm -rf ${JSON.stringify(`${systemRuntimeRoot}/${metadata.packageName}`)}`,
552
+ ` # Shared CEF cache ${systemCefCacheRoot} is intentionally preserved.`,
553
+ "fi",
554
+ "exit 0",
555
+ ""
556
+ ].join("\n"));
557
+ await (0, node_fs_promises.chmod)(postrmPath, 493);
558
+ }
503
559
  const outputPath = (0, node_path.join)(artifactsRoot, `${metadata.packageName}-${metadata.version}-${architecture}.deb`);
504
560
  await (0, node_fs_promises.mkdir)((0, node_path.dirname)(outputPath), { recursive: true });
561
+ progress?.({
562
+ phase: "pack",
563
+ status: "Running dpkg-deb"
564
+ });
505
565
  await runTool("dpkg-deb", [
566
+ "--root-owner-group",
506
567
  "--build",
507
568
  packageRoot,
508
569
  outputPath
@@ -516,7 +577,7 @@ var packageDeb = async (root, target, metadata, artifactsRoot, packageBuildRoot,
516
577
  var escapeNsis = (value) => value.replaceAll("\\", "\\\\").replaceAll("\"", "$\\\"");
517
578
  var nsisUninstallRegistryRoot = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall";
518
579
  var createNsisUninstallRegistryKey = (appId) => `${nsisUninstallRegistryRoot}\\${appId}`;
519
- var packageNsis = async (root, target, metadata, windowsResource, artifactsRoot, packageBuildRoot, environment) => {
580
+ var packageNsis = async (root, target, metadata, windowsResource, artifactsRoot, packageBuildRoot, environment, progress) => {
520
581
  const descriptor = require_vite_internals.getMuonTargetDescriptor(target.target);
521
582
  if (descriptor.os !== "windows") throw new Error(`Unsupported nsis target: ${target.target}`);
522
583
  const scriptPath = (0, node_path.join)(packageBuildRoot, "nsis", `${metadata.packageName}-${target.target}.nsi`);
@@ -569,6 +630,10 @@ var packageNsis = async (root, target, metadata, windowsResource, artifactsRoot,
569
630
  "FunctionEnd",
570
631
  ""
571
632
  ].join("\n"));
633
+ progress?.({
634
+ phase: "pack",
635
+ status: "Running makensis"
636
+ });
572
637
  await runTool("makensis", [scriptPath], root, environment);
573
638
  if (await statOrUndefined(outputPath) === void 0) throw new Error(`makensis did not create installer: ${outputPath}`);
574
639
  return {
@@ -617,6 +682,7 @@ var reapplyPackWindowsResources = async (targets, resource, root, environment) =
617
682
  * @returns Generated package artifacts.
618
683
  */
619
684
  var packMuonApp = async (options) => {
685
+ const progress = options.progress;
620
686
  const cwd = (0, node_path.resolve)(options.root ?? process.cwd());
621
687
  const environment = options.environment ?? process.env;
622
688
  const project = await require_vite_internals.loadMuonBuildSequenceProject(cwd);
@@ -626,12 +692,15 @@ var packMuonApp = async (options) => {
626
692
  const artifactsRoot = (0, node_path.resolve)(root, options.artifactsDir ?? defaultArtifactsDirectory);
627
693
  const packageBuildRoot = (0, node_path.resolve)(root, defaultPackageBuildDirectory);
628
694
  const types = normalizePackTypes(options.types);
695
+ const linuxSandbox = normalizeLinuxSandboxMode(options.linuxSandbox);
629
696
  const pluginBuildOptions = require_vite_internals.resolveMuonViteBuildOptions(project.pluginOptions);
630
697
  const targetPlan = createPackTargetPlan(types, resolvePackTargetCandidates(options, pluginBuildOptions));
698
+ validateLinuxSandboxModeForPlan(linuxSandbox, targetPlan);
631
699
  const buildOptions = {
632
700
  root: cwd,
633
701
  targets: targetPlan.map((entry) => entry.target),
634
- allTargets: false
702
+ allTargets: false,
703
+ includeRuntimeHelper: linuxSandbox === "setuid"
635
704
  };
636
705
  const windowsResourceOptions = require_vite_internals.mergeMuonWindowsResourceOptions(options.windowsResource, pluginBuildOptions.windowsResource);
637
706
  const linuxDesktopOptions = require_vite_internals.mergeMuonLinuxDesktopOptions(options.linuxDesktop, pluginBuildOptions.linuxDesktop);
@@ -643,6 +712,7 @@ var packMuonApp = async (options) => {
643
712
  if (options.packageDirectory !== void 0) buildOptions.packageDirectory = options.packageDirectory;
644
713
  if (windowsResourceOptions !== void 0) buildOptions.windowsResource = windowsResourceOptions;
645
714
  if (linuxDesktopOptions !== void 0) buildOptions.linuxDesktop = linuxDesktopOptions;
715
+ if (progress !== void 0) buildOptions.progress = progress;
646
716
  const windowsResourceConfig = await require_vite_internals.readMuonConfigForWindowsResource(root, options.configPath);
647
717
  const windowsResource = await require_vite_internals.resolveMuonWindowsResource({
648
718
  root,
@@ -660,6 +730,10 @@ var packMuonApp = async (options) => {
660
730
  copyright: void 0
661
731
  }
662
732
  });
733
+ progress?.({
734
+ phase: "pack",
735
+ status: "Building distributions"
736
+ });
663
737
  const build = await require_vite_internals.runMuonBuildSequence(buildOptions, project);
664
738
  if (options.packageVersion !== void 0) await reapplyPackWindowsResources(build.targets, windowsResource, root, environment);
665
739
  const typesByTarget = new Map(targetPlan.map((entry) => [entry.target, entry.types]));
@@ -677,10 +751,25 @@ var packMuonApp = async (options) => {
677
751
  });
678
752
  await (0, node_fs_promises.mkdir)(artifactsRoot, { recursive: true });
679
753
  const artifacts = [];
680
- for (const target of build.targets) for (const type of typesByTarget.get(target.target) ?? []) if (type === "zip") artifacts.push(await packageZip(target, metadata, artifactsRoot));
681
- else if (type === "tar.gz") artifacts.push(await packageTarGz(target, metadata, artifactsRoot));
682
- else if (type === "deb") artifacts.push(await packageDeb(root, target, metadata, artifactsRoot, packageBuildRoot, environment));
683
- else artifacts.push(await packageNsis(root, target, metadata, windowsResource, artifactsRoot, packageBuildRoot, environment));
754
+ const totalArtifacts = targetPlan.reduce((sum, entry) => sum + entry.types.length, 0);
755
+ let artifactIndex = 0;
756
+ for (const target of build.targets) for (const type of typesByTarget.get(target.target) ?? []) {
757
+ artifactIndex += 1;
758
+ progress?.({
759
+ phase: "pack",
760
+ status: `Packaging ${type} ${target.target} (${artifactIndex}/${totalArtifacts})`
761
+ });
762
+ let artifact;
763
+ if (type === "zip") artifact = await packageZip(target, metadata, artifactsRoot);
764
+ else if (type === "tar.gz") artifact = await packageTarGz(target, metadata, artifactsRoot);
765
+ else if (type === "deb") artifact = await packageDeb(root, target, metadata, artifactsRoot, packageBuildRoot, environment, linuxSandbox, progress);
766
+ else artifact = await packageNsis(root, target, metadata, windowsResource, artifactsRoot, packageBuildRoot, environment, progress);
767
+ artifacts.push(artifact);
768
+ progress?.({
769
+ phase: "pack",
770
+ status: `Wrote ${artifact.path}`
771
+ });
772
+ }
684
773
  return {
685
774
  root,
686
775
  packageName: metadata.packageName,
@@ -694,8 +783,8 @@ var packMuonApp = async (options) => {
694
783
  };
695
784
  //#endregion
696
785
  //#region src/generated/packageMetadata.ts
697
- var version = "0.9.0";
698
- var git_commit_hash = "3437b522a51d8772713b72722b109c5ff30fc711";
786
+ var version = "0.10.0";
787
+ var git_commit_hash = "7bf3c14f4ebc9ae604525ea66a10289463c086ab";
699
788
  //#endregion
700
789
  //#region src/cli.ts
701
790
  var readTargetValues = (value) => {
@@ -761,7 +850,15 @@ var runBuildCommand = async (commandOptions) => {
761
850
  if (commandOptions.name !== void 0) buildOptions.appName = commandOptions.name;
762
851
  if (commandOptions.appId !== void 0) buildOptions.appId = commandOptions.appId;
763
852
  if (commandOptions.packageDirectory !== void 0) buildOptions.packageDirectory = commandOptions.packageDirectory;
764
- const result = await require_vite_internals.runMuonBuildSequence(buildOptions);
853
+ const progressRenderer = require_vite_internals.createMuonProgressRenderer();
854
+ buildOptions.progress = progressRenderer.report;
855
+ const result = await (async () => {
856
+ try {
857
+ return await require_vite_internals.runMuonBuildSequence(buildOptions);
858
+ } finally {
859
+ progressRenderer.flush();
860
+ }
861
+ })();
765
862
  if (commandOptions.json === true) console.log(JSON.stringify(result, null, 2));
766
863
  else for (const target of result.targets) console.log(target.outputPath);
767
864
  };
@@ -781,6 +878,7 @@ var runPackCommand = async (commandOptions) => {
781
878
  if (windowsResource !== void 0) packOptions.windowsResource = windowsResource;
782
879
  const linuxDesktop = createLinuxDesktopOptions(commandOptions);
783
880
  if (linuxDesktop !== void 0) packOptions.linuxDesktop = linuxDesktop;
881
+ if (commandOptions.linuxSandbox !== void 0) packOptions.linuxSandbox = commandOptions.linuxSandbox;
784
882
  if (commandOptions.name !== void 0) packOptions.appName = commandOptions.name;
785
883
  if (commandOptions.appId !== void 0) packOptions.appId = commandOptions.appId;
786
884
  if (commandOptions.packageDirectory !== void 0) packOptions.packageDirectory = commandOptions.packageDirectory;
@@ -789,7 +887,15 @@ var runPackCommand = async (commandOptions) => {
789
887
  if (commandOptions.packageVersion !== void 0) packOptions.packageVersion = commandOptions.packageVersion;
790
888
  if (commandOptions.description !== void 0) packOptions.description = commandOptions.description;
791
889
  if (commandOptions.author !== void 0) packOptions.author = commandOptions.author;
792
- const result = await packMuonApp(packOptions);
890
+ const progressRenderer = require_vite_internals.createMuonProgressRenderer();
891
+ packOptions.progress = progressRenderer.report;
892
+ const result = await (async () => {
893
+ try {
894
+ return await packMuonApp(packOptions);
895
+ } finally {
896
+ progressRenderer.flush();
897
+ }
898
+ })();
793
899
  if (commandOptions.json === true) console.log(JSON.stringify(result, null, 2));
794
900
  else for (const artifact of result.artifacts) console.log(artifact.path);
795
901
  };
@@ -871,7 +977,7 @@ var createCliCommand = () => {
871
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) => {
872
978
  await runBuildCommand(options);
873
979
  });
874
- 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("--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) => {
875
981
  await runPackCommand(options);
876
982
  });
877
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) => {