muon-ui 0.1.0 → 0.2.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 (36) hide show
  1. package/dist/{build-CCuZpajl.cjs → build-BxDRaTmF.cjs} +83 -26
  2. package/dist/{build-CCuZpajl.cjs.map → build-BxDRaTmF.cjs.map} +1 -1
  3. package/dist/cli.cjs +12 -10
  4. package/dist/cli.cjs.map +1 -1
  5. package/dist/index.cjs +2 -2
  6. package/dist/index.mjs +2 -2
  7. package/dist/native/linux64/muon-bootstrap +0 -0
  8. package/dist/native/linux64/muon-prepare +0 -0
  9. package/dist/native/linuxarm/muon-bootstrap +0 -0
  10. package/dist/native/linuxarm/muon-prepare +0 -0
  11. package/dist/native/linuxarm64/muon-bootstrap +0 -0
  12. package/dist/native/linuxarm64/muon-prepare +0 -0
  13. package/dist/native/windows32/muon-bootstrap.exe +0 -0
  14. package/dist/native/windows32/muon-prepare.exe +0 -0
  15. package/dist/native/windows64/muon-bootstrap.exe +0 -0
  16. package/dist/native/windows64/muon-prepare.exe +0 -0
  17. package/dist/runtime/{linuxarm64/THIRD_PARTY_NOTICES.md → linux64/LICENSE_muon} +59 -16
  18. package/dist/runtime/linux64/muon-core +0 -0
  19. package/dist/runtime/{windows32/THIRD_PARTY_NOTICES.md → linuxarm/LICENSE_muon} +59 -16
  20. package/dist/runtime/linuxarm/muon-core +0 -0
  21. package/dist/runtime/{linux64/THIRD_PARTY_NOTICES.md → linuxarm64/LICENSE_muon} +59 -16
  22. package/dist/runtime/linuxarm64/muon-core +0 -0
  23. package/dist/runtime/{linuxarm/THIRD_PARTY_NOTICES.md → windows32/LICENSE_muon} +59 -16
  24. package/dist/runtime/windows32/libcardio.dll +0 -0
  25. package/dist/runtime/windows32/libmuon-ui.dll +0 -0
  26. package/dist/runtime/windows32/muon-core.exe +0 -0
  27. package/dist/runtime/windows64/LICENSE_muon +266 -0
  28. package/dist/runtime/windows64/libcardio.dll +0 -0
  29. package/dist/runtime/windows64/libmuon-ui.dll +0 -0
  30. package/dist/runtime/windows64/muon-core.exe +0 -0
  31. package/dist/vite.cjs +59 -18
  32. package/dist/vite.cjs.map +1 -1
  33. package/dist/vite.mjs +135 -47
  34. package/dist/vite.mjs.map +1 -1
  35. package/package.json +8 -8
  36. package/dist/runtime/windows64/THIRD_PARTY_NOTICES.md +0 -223
package/dist/cli.cjs CHANGED
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  /*!
3
3
  * name: muon-ui
4
- * version: 0.1.0
4
+ * version: 0.2.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: 35f9658786642562593735d3b589c1d7ab270ecf
9
+ * git.commit.hash: 6251ff88aafa8ae873657f39aed1ebba2fa329a4
10
10
  */
11
- const require_build = require("./build-CCuZpajl.cjs");
11
+ const require_build = require("./build-BxDRaTmF.cjs");
12
12
  let commander = require("commander");
13
13
  //#region src/generated/packageMetadata.ts
14
- var version = "0.1.0";
15
- var git_commit_hash = "35f9658786642562593735d3b589c1d7ab270ecf";
14
+ var version = "0.2.0";
15
+ var git_commit_hash = "6251ff88aafa8ae873657f39aed1ebba2fa329a4";
16
16
  //#endregion
17
17
  //#region src/cli.ts
18
18
  var readTargetValues = (value) => {
@@ -111,12 +111,14 @@ var createCliCommand = () => {
111
111
  return program;
112
112
  };
113
113
  var main = async () => {
114
- await createCliCommand().parseAsync(process.argv);
114
+ try {
115
+ await createCliCommand().parseAsync(process.argv);
116
+ } catch (error) {
117
+ console.error(error instanceof Error ? error.message : String(error));
118
+ process.exitCode = 1;
119
+ }
115
120
  };
116
- main().catch((error) => {
117
- console.error(error instanceof Error ? error.message : String(error));
118
- process.exitCode = 1;
119
- });
121
+ main();
120
122
  //#endregion
121
123
 
122
124
  //# sourceMappingURL=cli.cjs.map
package/dist/cli.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.cjs","names":[],"sources":["../src/generated/packageMetadata.ts","../src/cli.ts"],"sourcesContent":["// @ts-nocheck\n// This file is auto-generated by screw-up plugin\n// Do not edit manually\n\nexport const name = \"muon-ui\";\nexport const version = \"0.1.0\";\nexport const description = \"A multi-platform GUI application framework that uses CEF as its backend\";\nexport const author = \"Kouji Matsui (@kekyo@mi.kekyo.net)\";\nexport const license = \"MIT\";\nexport const repository_url = \"https://github.com/kekyo/muon-ui.git\";\nexport const git_commit_hash = \"35f9658786642562593735d3b589c1d7ab270ecf\";\n","#!/usr/bin/env node\n// muon - Multi-platform GUI application framework that uses CEF as its backend\n// Copyright (c) Kouji Matsui. (@kekyo@mi.kekyo.net)\n// Under MIT.\n// https://github.com/kekyo/muon\n\nimport { Command } from \"commander\";\n\nimport {\n getDefaultMuonPrepareTarget,\n runMuonPrepare,\n type MuonPrepareOptions,\n} from \"./prepare.js\";\nimport {\n embedMuonConfigInBootstrapFile,\n embedMuonConfigInCoreFile,\n embedMuonConfigInRuntime,\n type EmbedMuonConfigResult,\n} from \"./embed-config.js\";\nimport { buildMuonApp, type MuonBuildOptions } from \"./build.js\";\nimport { git_commit_hash, version } from \"./generated/packageMetadata.js\";\n\ninterface PrepareCommandOptions {\n muonPath: string | undefined;\n cefPath: string | undefined;\n stageDir: string | undefined;\n target: string | undefined;\n cacheDir: string | undefined;\n force: boolean | undefined;\n quiet: boolean | undefined;\n json: boolean | undefined;\n}\n\ninterface EmbedConfigCommandOptions {\n runtimePath: string | undefined;\n corePath: string | undefined;\n bootstrapPath: string | undefined;\n config: string | undefined;\n outputRuntimePath: string | undefined;\n output: string | undefined;\n outputBootstrap: string | undefined;\n json: boolean | undefined;\n}\n\ninterface BuildCommandOptions {\n target: string[];\n all: boolean | undefined;\n assets: string | undefined;\n config: string | undefined;\n outDir: string | undefined;\n name: string | undefined;\n json: boolean | undefined;\n}\n\nconst readTargetValues = (value: string): string[] => {\n return value\n .split(\",\")\n .map((value) => value.trim())\n .filter((value) => value.length > 0);\n};\n\nconst appendTargetValues = (value: string, previous: string[]): string[] => {\n return [...previous, ...readTargetValues(value)];\n};\n\nconst validateEmbedConfigOptions = (\n options: EmbedConfigCommandOptions,\n): void => {\n if (options.runtimePath !== undefined && options.corePath !== undefined) {\n throw new Error(\"Specify at most one of --runtime-path or --core-path.\");\n }\n if (\n options.runtimePath === undefined &&\n options.corePath === undefined &&\n options.bootstrapPath === undefined\n ) {\n throw new Error(\n \"Specify at least one of --runtime-path, --core-path, or --bootstrap-path.\",\n );\n }\n if (\n options.corePath !== undefined &&\n options.outputRuntimePath !== undefined\n ) {\n throw new Error(\"--output-runtime-path requires --runtime-path.\");\n }\n if (options.runtimePath !== undefined && options.output !== undefined) {\n throw new Error(\"--output requires --core-path.\");\n }\n if (\n options.bootstrapPath === undefined &&\n options.outputBootstrap !== undefined\n ) {\n throw new Error(\"--output-bootstrap requires --bootstrap-path.\");\n }\n};\n\nconst runBuildCommand = async (\n commandOptions: BuildCommandOptions,\n): Promise<void> => {\n const targets = commandOptions.target;\n if (commandOptions.all === true && targets.length > 0) {\n throw new Error(\"Specify either --all or --target, not both.\");\n }\n\n const buildOptions: MuonBuildOptions = {\n root: process.cwd(),\n allTargets: commandOptions.all === true,\n };\n\n if (targets.length > 0) {\n buildOptions.targets = targets;\n }\n if (commandOptions.assets !== undefined) {\n buildOptions.assetSourcePath = commandOptions.assets;\n }\n if (commandOptions.config !== undefined) {\n buildOptions.configPath = commandOptions.config;\n }\n if (commandOptions.outDir !== undefined) {\n buildOptions.outputRoot = commandOptions.outDir;\n }\n if (commandOptions.name !== undefined) {\n buildOptions.appName = commandOptions.name;\n }\n\n const result = await buildMuonApp(buildOptions);\n if (commandOptions.json === true) {\n console.log(JSON.stringify(result, null, 2));\n } else {\n for (const target of result.targets) {\n console.log(target.outputPath);\n }\n }\n};\n\nconst runPrepareCommand = async (\n commandOptions: PrepareCommandOptions,\n): Promise<void> => {\n const prepareOptions: MuonPrepareOptions = {\n muonPath: commandOptions.muonPath ?? \"\",\n cefPath: commandOptions.cefPath,\n stageDir: commandOptions.stageDir,\n target:\n commandOptions.target ??\n getDefaultMuonPrepareTarget(process.platform, process.arch),\n cacheDir: commandOptions.cacheDir,\n force: commandOptions.force === true,\n quiet: commandOptions.quiet === true,\n prepareExecutablePath: undefined,\n environment: process.env,\n cwd: process.cwd(),\n };\n const result = await runMuonPrepare(prepareOptions);\n if (commandOptions.json === true) {\n console.log(JSON.stringify(result, null, 2));\n } else {\n console.log(result.stagePath ?? result.cefPath);\n }\n};\n\nconst printEmbedConfigResult = (\n result: EmbedMuonConfigResult,\n json: boolean | undefined,\n): void => {\n if (json === true) {\n console.log(JSON.stringify(result, null, 2));\n } else {\n console.log(result.outputPath);\n }\n};\n\nconst runEmbedConfigCommand = async (\n commandOptions: EmbedConfigCommandOptions,\n): Promise<void> => {\n validateEmbedConfigOptions(commandOptions);\n const configPath = commandOptions.config ?? \"\";\n const coreResult =\n commandOptions.corePath !== undefined\n ? await embedMuonConfigInCoreFile({\n corePath: commandOptions.corePath,\n configPath,\n outputPath: commandOptions.output,\n })\n : commandOptions.runtimePath !== undefined\n ? await embedMuonConfigInRuntime({\n runtimePath: commandOptions.runtimePath,\n configPath,\n outputRuntimePath: commandOptions.outputRuntimePath,\n })\n : undefined;\n const bootstrapResult =\n commandOptions.bootstrapPath === undefined\n ? undefined\n : await embedMuonConfigInBootstrapFile({\n bootstrapPath: commandOptions.bootstrapPath,\n configPath,\n outputPath: commandOptions.outputBootstrap,\n });\n if (coreResult !== undefined && bootstrapResult !== undefined) {\n if (commandOptions.json === true) {\n console.log(\n JSON.stringify(\n {\n core: coreResult,\n bootstrap: bootstrapResult,\n },\n null,\n 2,\n ),\n );\n } else {\n console.log(`${coreResult.outputPath}\\n${bootstrapResult.outputPath}`);\n }\n return;\n }\n const result = coreResult ?? bootstrapResult;\n if (result === undefined) {\n throw new Error(\"No embed-config target was specified.\");\n }\n printEmbedConfigResult(result, commandOptions.json);\n};\n\nconst createCliCommand = (): Command => {\n const program = new Command();\n\n program\n .name(\"muon\")\n .description(\n \"Multi-platform GUI application framework that uses CEF as its backend\",\n )\n .version(`${version}-${git_commit_hash}`)\n .showSuggestionAfterError()\n .action(() => {\n program.outputHelp({ error: true });\n process.exitCode = 1;\n });\n\n program\n .command(\"build\")\n .description(\"Build CEF-free Muon app distribution directories\")\n .option(\n \"--target <target>\",\n \"target alias or comma-separated target aliases\",\n appendTargetValues,\n [],\n )\n .option(\"--all\", \"build all supported targets\")\n .option(\"--assets <path>\", \"asset root path\")\n .option(\"--config <path>\", \"muon config path\")\n .option(\"--out-dir <path>\", \"output root directory\")\n .option(\"--name <name>\", \"launcher file name\")\n .option(\"--json\", \"write result as JSON\")\n .action(async (options: BuildCommandOptions) => {\n await runBuildCommand(options);\n });\n\n program\n .command(\"prepare\")\n .description(\"Prepare a Muon runtime with CEF files\")\n .requiredOption(\"--muon-path <path>\", \"Muon runtime file root\")\n .option(\"--cef-path <path>\", \"CEF file root\")\n .option(\"--stage-dir <path>\", \"prepared runtime output directory\")\n .option(\"--target <target>\", \"prepare target\")\n .option(\"--cache-dir <path>\", \"CEF artifact cache directory\")\n .option(\"--force\", \"rebuild an existing prepared runtime\")\n .option(\"-q, --quiet\", \"suppress native prepare progress messages\")\n .option(\"--json\", \"write result as JSON\")\n .action(async (options: PrepareCommandOptions) => {\n await runPrepareCommand(options);\n });\n\n program\n .command(\"embed-config\")\n .description(\"Embed muon.json into Muon runtime files\")\n .option(\"--runtime-path <path>\", \"prepared runtime directory\")\n .option(\"--core-path <path>\", \"muon-core executable path\")\n .option(\"--bootstrap-path <path>\", \"muon-bootstrap executable path\")\n .requiredOption(\"--config <path>\", \"muon config path\")\n .option(\"--output-runtime-path <path>\", \"patched runtime output directory\")\n .option(\"--output <path>\", \"patched muon-core output path\")\n .option(\"--output-bootstrap <path>\", \"patched bootstrap output path\")\n .option(\"--json\", \"write result as JSON\")\n .action(async (options: EmbedConfigCommandOptions) => {\n await runEmbedConfigCommand(options);\n });\n\n return program;\n};\n\nconst main = async (): Promise<void> => {\n await createCliCommand().parseAsync(process.argv);\n};\n\nmain().catch((error: unknown) => {\n console.error(error instanceof Error ? error.message : String(error));\n process.exitCode = 1;\n});\n"],"mappings":";;;;;;;;;;;;;AAKA,IAAa,UAAU;AAKvB,IAAa,kBAAkB;;;AC4C/B,IAAM,oBAAoB,UAA4B;CACpD,OAAO,MACJ,MAAM,GAAG,EACT,KAAK,UAAU,MAAM,KAAK,CAAC,EAC3B,QAAQ,UAAU,MAAM,SAAS,CAAC;AACvC;AAEA,IAAM,sBAAsB,OAAe,aAAiC;CAC1E,OAAO,CAAC,GAAG,UAAU,GAAG,iBAAiB,KAAK,CAAC;AACjD;AAEA,IAAM,8BACJ,YACS;CACT,IAAI,QAAQ,gBAAgB,KAAA,KAAa,QAAQ,aAAa,KAAA,GAC5D,MAAM,IAAI,MAAM,uDAAuD;CAEzE,IACE,QAAQ,gBAAgB,KAAA,KACxB,QAAQ,aAAa,KAAA,KACrB,QAAQ,kBAAkB,KAAA,GAE1B,MAAM,IAAI,MACR,2EACF;CAEF,IACE,QAAQ,aAAa,KAAA,KACrB,QAAQ,sBAAsB,KAAA,GAE9B,MAAM,IAAI,MAAM,gDAAgD;CAElE,IAAI,QAAQ,gBAAgB,KAAA,KAAa,QAAQ,WAAW,KAAA,GAC1D,MAAM,IAAI,MAAM,gCAAgC;CAElD,IACE,QAAQ,kBAAkB,KAAA,KAC1B,QAAQ,oBAAoB,KAAA,GAE5B,MAAM,IAAI,MAAM,+CAA+C;AAEnE;AAEA,IAAM,kBAAkB,OACtB,mBACkB;CAClB,MAAM,UAAU,eAAe;CAC/B,IAAI,eAAe,QAAQ,QAAQ,QAAQ,SAAS,GAClD,MAAM,IAAI,MAAM,6CAA6C;CAG/D,MAAM,eAAiC;EACrC,MAAM,QAAQ,IAAI;EAClB,YAAY,eAAe,QAAQ;CACrC;CAEA,IAAI,QAA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AuC,EACnD,eAAe,sBAAsB,wBAAwB,EAC7D,OAAO,qBAAqB,eAAe,EAC3C,OAAO,sBAAsB,mCAAmC,EAChE,OAAO,qBAAqB,gBAAgB,EAC5C,OAAO,sBAAsB,8BAA8B,EAC3D,OAAO,WAAW,sCAAsC,EACxD,OAAO,eAAe,2CAA2C,EACjE,OAAO,UAAU,sBAAsB,EACvC,OAAO,OAAO,YAAmC;EAChD,MAAM,kBAAkB,OAAO;CACjC,CAAC;CAEH,QACG,QAAQ,cAAc,EACtB,YAAY,yCAAyC,EACrD,OAAO,yBAAyB,4BAA4B,EAC5D,OAAO,sBAAsB,2BAA2B,EACxD,OAAO,2BAA2B,gCAAgC,EAClE,eAAe,mBAAmB,kBAAkB,EACpD,OAAO,gCAAgC,kCAAkC,EACzE,OAAO,mBAAmB,+BAA+B,EACzD,OAAO,6BAA6B,+BAA+B,EACnE,OAAO,UAAU,sBAAsB,EACvC,OAAO,OAAO,YAAuC;EACpD,MAAM,sBAAsB,OAAO;CACrC,CAAC;CAEH,OAAO;AACT;AAEA,IAAM,OAAO,YAA2B;CACtC,MAAM,iBAAiB,EAAE,WAAW,QAAQ,IAAI;AAClD;AAEA,KAAK,EAAE,OAAO,UAAmB;CAC/B,QAAQ,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;CACpE,QAAQ,WAAW;AACrB,CAAC"}
1
+ {"version":3,"file":"cli.cjs","names":[],"sources":["../src/generated/packageMetadata.ts","../src/cli.ts"],"sourcesContent":["// @ts-nocheck\n// This file is auto-generated by screw-up plugin\n// Do not edit manually\n\nexport const name = \"muon-ui\";\nexport const version = \"0.2.0\";\nexport const description = \"A multi-platform GUI application framework that uses CEF as its backend\";\nexport const author = \"Kouji Matsui (@kekyo@mi.kekyo.net)\";\nexport const license = \"MIT\";\nexport const repository_url = \"https://github.com/kekyo/muon-ui.git\";\nexport const git_commit_hash = \"6251ff88aafa8ae873657f39aed1ebba2fa329a4\";\n","#!/usr/bin/env node\n// muon - Multi-platform GUI application framework that uses CEF as its backend\n// Copyright (c) Kouji Matsui. (@kekyo@mi.kekyo.net)\n// Under MIT.\n// https://github.com/kekyo/muon\n\nimport { Command } from \"commander\";\n\nimport {\n getDefaultMuonPrepareTarget,\n runMuonPrepare,\n type MuonPrepareOptions,\n} from \"./prepare.js\";\nimport {\n embedMuonConfigInBootstrapFile,\n embedMuonConfigInCoreFile,\n embedMuonConfigInRuntime,\n type EmbedMuonConfigResult,\n} from \"./embed-config.js\";\nimport { buildMuonApp, type MuonBuildOptions } from \"./build.js\";\nimport { git_commit_hash, version } from \"./generated/packageMetadata.js\";\n\ninterface PrepareCommandOptions {\n muonPath: string | undefined;\n cefPath: string | undefined;\n stageDir: string | undefined;\n target: string | undefined;\n cacheDir: string | undefined;\n force: boolean | undefined;\n quiet: boolean | undefined;\n json: boolean | undefined;\n}\n\ninterface EmbedConfigCommandOptions {\n runtimePath: string | undefined;\n corePath: string | undefined;\n bootstrapPath: string | undefined;\n config: string | undefined;\n outputRuntimePath: string | undefined;\n output: string | undefined;\n outputBootstrap: string | undefined;\n json: boolean | undefined;\n}\n\ninterface BuildCommandOptions {\n target: string[];\n all: boolean | undefined;\n assets: string | undefined;\n config: string | undefined;\n outDir: string | undefined;\n name: string | undefined;\n json: boolean | undefined;\n}\n\nconst readTargetValues = (value: string): string[] => {\n return value\n .split(\",\")\n .map((value) => value.trim())\n .filter((value) => value.length > 0);\n};\n\nconst appendTargetValues = (value: string, previous: string[]): string[] => {\n return [...previous, ...readTargetValues(value)];\n};\n\nconst validateEmbedConfigOptions = (\n options: EmbedConfigCommandOptions,\n): void => {\n if (options.runtimePath !== undefined && options.corePath !== undefined) {\n throw new Error(\"Specify at most one of --runtime-path or --core-path.\");\n }\n if (\n options.runtimePath === undefined &&\n options.corePath === undefined &&\n options.bootstrapPath === undefined\n ) {\n throw new Error(\n \"Specify at least one of --runtime-path, --core-path, or --bootstrap-path.\",\n );\n }\n if (\n options.corePath !== undefined &&\n options.outputRuntimePath !== undefined\n ) {\n throw new Error(\"--output-runtime-path requires --runtime-path.\");\n }\n if (options.runtimePath !== undefined && options.output !== undefined) {\n throw new Error(\"--output requires --core-path.\");\n }\n if (\n options.bootstrapPath === undefined &&\n options.outputBootstrap !== undefined\n ) {\n throw new Error(\"--output-bootstrap requires --bootstrap-path.\");\n }\n};\n\nconst runBuildCommand = async (\n commandOptions: BuildCommandOptions,\n): Promise<void> => {\n const targets = commandOptions.target;\n if (commandOptions.all === true && targets.length > 0) {\n throw new Error(\"Specify either --all or --target, not both.\");\n }\n\n const buildOptions: MuonBuildOptions = {\n root: process.cwd(),\n allTargets: commandOptions.all === true,\n };\n\n if (targets.length > 0) {\n buildOptions.targets = targets;\n }\n if (commandOptions.assets !== undefined) {\n buildOptions.assetSourcePath = commandOptions.assets;\n }\n if (commandOptions.config !== undefined) {\n buildOptions.configPath = commandOptions.config;\n }\n if (commandOptions.outDir !== undefined) {\n buildOptions.outputRoot = commandOptions.outDir;\n }\n if (commandOptions.name !== undefined) {\n buildOptions.appName = commandOptions.name;\n }\n\n const result = await buildMuonApp(buildOptions);\n if (commandOptions.json === true) {\n console.log(JSON.stringify(result, null, 2));\n } else {\n for (const target of result.targets) {\n console.log(target.outputPath);\n }\n }\n};\n\nconst runPrepareCommand = async (\n commandOptions: PrepareCommandOptions,\n): Promise<void> => {\n const prepareOptions: MuonPrepareOptions = {\n muonPath: commandOptions.muonPath ?? \"\",\n cefPath: commandOptions.cefPath,\n stageDir: commandOptions.stageDir,\n target:\n commandOptions.target ??\n getDefaultMuonPrepareTarget(process.platform, process.arch),\n cacheDir: commandOptions.cacheDir,\n force: commandOptions.force === true,\n quiet: commandOptions.quiet === true,\n prepareExecutablePath: undefined,\n environment: process.env,\n cwd: process.cwd(),\n };\n const result = await runMuonPrepare(prepareOptions);\n if (commandOptions.json === true) {\n console.log(JSON.stringify(result, null, 2));\n } else {\n console.log(result.stagePath ?? result.cefPath);\n }\n};\n\nconst printEmbedConfigResult = (\n result: EmbedMuonConfigResult,\n json: boolean | undefined,\n): void => {\n if (json === true) {\n console.log(JSON.stringify(result, null, 2));\n } else {\n console.log(result.outputPath);\n }\n};\n\nconst runEmbedConfigCommand = async (\n commandOptions: EmbedConfigCommandOptions,\n): Promise<void> => {\n validateEmbedConfigOptions(commandOptions);\n const configPath = commandOptions.config ?? \"\";\n const coreResult =\n commandOptions.corePath !== undefined\n ? await embedMuonConfigInCoreFile({\n corePath: commandOptions.corePath,\n configPath,\n outputPath: commandOptions.output,\n })\n : commandOptions.runtimePath !== undefined\n ? await embedMuonConfigInRuntime({\n runtimePath: commandOptions.runtimePath,\n configPath,\n outputRuntimePath: commandOptions.outputRuntimePath,\n })\n : undefined;\n const bootstrapResult =\n commandOptions.bootstrapPath === undefined\n ? undefined\n : await embedMuonConfigInBootstrapFile({\n bootstrapPath: commandOptions.bootstrapPath,\n configPath,\n outputPath: commandOptions.outputBootstrap,\n });\n if (coreResult !== undefined && bootstrapResult !== undefined) {\n if (commandOptions.json === true) {\n console.log(\n JSON.stringify(\n {\n core: coreResult,\n bootstrap: bootstrapResult,\n },\n null,\n 2,\n ),\n );\n } else {\n console.log(`${coreResult.outputPath}\\n${bootstrapResult.outputPath}`);\n }\n return;\n }\n const result = coreResult ?? bootstrapResult;\n if (result === undefined) {\n throw new Error(\"No embed-config target was specified.\");\n }\n printEmbedConfigResult(result, commandOptions.json);\n};\n\nconst createCliCommand = (): Command => {\n const program = new Command();\n\n program\n .name(\"muon\")\n .description(\n \"Multi-platform GUI application framework that uses CEF as its backend\",\n )\n .version(`${version}-${git_commit_hash}`)\n .showSuggestionAfterError()\n .action(() => {\n program.outputHelp({ error: true });\n process.exitCode = 1;\n });\n\n program\n .command(\"build\")\n .description(\"Build CEF-free Muon app distribution directories\")\n .option(\n \"--target <target>\",\n \"target alias or comma-separated target aliases\",\n appendTargetValues,\n [],\n )\n .option(\"--all\", \"build all supported targets\")\n .option(\"--assets <path>\", \"asset root path\")\n .option(\"--config <path>\", \"muon config path\")\n .option(\"--out-dir <path>\", \"output root directory\")\n .option(\"--name <name>\", \"launcher file name\")\n .option(\"--json\", \"write result as JSON\")\n .action(async (options: BuildCommandOptions) => {\n await runBuildCommand(options);\n });\n\n program\n .command(\"prepare\")\n .description(\"Prepare a Muon runtime with CEF files\")\n .requiredOption(\"--muon-path <path>\", \"Muon runtime file root\")\n .option(\"--cef-path <path>\", \"CEF file root\")\n .option(\"--stage-dir <path>\", \"prepared runtime output directory\")\n .option(\"--target <target>\", \"prepare target\")\n .option(\"--cache-dir <path>\", \"CEF artifact cache directory\")\n .option(\"--force\", \"rebuild an existing prepared runtime\")\n .option(\"-q, --quiet\", \"suppress native prepare progress messages\")\n .option(\"--json\", \"write result as JSON\")\n .action(async (options: PrepareCommandOptions) => {\n await runPrepareCommand(options);\n });\n\n program\n .command(\"embed-config\")\n .description(\"Embed muon.json into Muon runtime files\")\n .option(\"--runtime-path <path>\", \"prepared runtime directory\")\n .option(\"--core-path <path>\", \"muon-core executable path\")\n .option(\"--bootstrap-path <path>\", \"muon-bootstrap executable path\")\n .requiredOption(\"--config <path>\", \"muon config path\")\n .option(\"--output-runtime-path <path>\", \"patched runtime output directory\")\n .option(\"--output <path>\", \"patched muon-core output path\")\n .option(\"--output-bootstrap <path>\", \"patched bootstrap output path\")\n .option(\"--json\", \"write result as JSON\")\n .action(async (options: EmbedConfigCommandOptions) => {\n await runEmbedConfigCommand(options);\n });\n\n return program;\n};\n\nconst main = async (): Promise<void> => {\n try {\n await createCliCommand().parseAsync(process.argv);\n } catch (error) {\n console.error(error instanceof Error ? error.message : String(error));\n process.exitCode = 1;\n }\n};\n\nvoid main();\n"],"mappings":";;;;;;;;;;;;;AAKA,IAAa,UAAU;AAKvB,IAAa,kBAAkB;;;AC4C/B,IAAM,oBAAoB,UAA4B;CACpD,OAAO,MACJ,MAAM,GAAG,EACT,KAAK,UAAU,MAAM,KAAK,CAAC,EAC3B,QAAQ,UAAU,MAAM,SAAS,CAAC;AACvC;AAEA,IAA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B,EACxD,OAAO,2BAA2B,gCAAgC,EAClE,eAAe,mBAAmB,kBAAkB,EACpD,OAAO,gCAAgC,kCAAkC,EACzE,OAAO,mBAAmB,+BAA+B,EACzD,OAAO,6BAA6B,+BAA+B,EACnE,OAAO,UAAU,sBAAsB,EACvC,OAAO,OAAO,YAAuC;EACpD,MAAM,sBAAsB,OAAO;CACrC,CAAC;CAEH,OAAO;AACT;AAEA,IAAM,OAAO,YAA2B;CACtC,IAAI;EACF,MAAM,iBAAiB,EAAE,WAAW,QAAQ,IAAI;CAClD,SAAS,OAAO;EACd,QAAQ,MAAM,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,CAAC;EACpE,QAAQ,WAAW;CACrB;AACF;AAEK,KAAK"}
package/dist/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * name: muon-ui
3
- * version: 0.1.0
3
+ * version: 0.2.0
4
4
  * description: A multi-platform GUI application framework that uses CEF as its backend
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 35f9658786642562593735d3b589c1d7ab270ecf
8
+ * git.commit.hash: 6251ff88aafa8ae873657f39aed1ebba2fa329a4
9
9
  */
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * name: muon-ui
3
- * version: 0.1.0
3
+ * version: 0.2.0
4
4
  * description: A multi-platform GUI application framework that uses CEF as its backend
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/muon-ui.git
8
- * git.commit.hash: 35f9658786642562593735d3b589c1d7ab270ecf
8
+ * git.commit.hash: 6251ff88aafa8ae873657f39aed1ebba2fa329a4
9
9
  */
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,11 +1,67 @@
1
- # Third Party Notices
1
+ # muon license
2
+
3
+ ## muon
4
+
5
+ Source: https://github.com/kekyo/muon-ui/
6
+
7
+ Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ ## Chromium Embedded Framework (CEF)
28
+
29
+ Source: https://github.com/chromiumembedded/cef/
30
+
31
+ Copyright (c) 2008-2020 Marshall A. Greenblatt. Portions Copyright (c)
32
+ 2006-2009 Google Inc. All rights reserved.
33
+
34
+ Redistribution and use in source and binary forms, with or without
35
+ modification, are permitted provided that the following conditions are
36
+ met:
37
+
38
+ * Redistributions of source code must retain the above copyright
39
+ notice, this list of conditions and the following disclaimer.
40
+ * Redistributions in binary form must reproduce the above
41
+ copyright notice, this list of conditions and the following disclaimer
42
+ in the documentation and/or other materials provided with the
43
+ distribution.
44
+ * Neither the name of Google Inc. nor the name Chromium Embedded
45
+ Framework nor the names of its contributors may be used to endorse
46
+ or promote products derived from this software without specific prior
47
+ written permission.
48
+
49
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
50
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
51
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
52
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
53
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
54
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
55
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
57
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
58
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
59
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
60
 
3
61
  ## libffi 3.4.6
4
62
 
5
63
  Source: https://github.com/libffi/libffi/releases/tag/v3.4.6
6
64
 
7
- License: MIT
8
-
9
65
  libffi - Copyright (c) 1996-2024 Anthony Green, Red Hat, Inc and others.
10
66
  See source files for details.
11
67
 
@@ -32,8 +88,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
88
 
33
89
  Source: https://github.com/ibireme/yyjson/tree/0.12.0
34
90
 
35
- License: MIT
36
-
37
91
  Copyright (c) 2020 YaoYuan <ibireme@gmail.com>
38
92
 
39
93
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -59,8 +113,6 @@ SOFTWARE.
59
113
  Source:
60
114
  https://github.com/NetBSD/src/tree/trunk/common/lib/libc/hash/sha1
61
115
 
62
- License: Public Domain
63
-
64
116
  SHA-1 in C
65
117
  By Steve Reid <steve@edmweb.com>
66
118
  100% Public Domain
@@ -69,9 +121,6 @@ By Steve Reid <steve@edmweb.com>
69
121
 
70
122
  Source: https://github.com/libarchive/libarchive/releases/tag/v3.8.7
71
123
 
72
- License: BSD-2-Clause with additional per-file license notes in the
73
- distribution.
74
-
75
124
  The libarchive distribution as a whole is Copyright by Tim Kientzle
76
125
  and is subject to the copyright notice reproduced below.
77
126
 
@@ -147,8 +196,6 @@ bzip2/libbzip2 version 1.0.8 of 13 July 2019
147
196
 
148
197
  Source: https://github.com/richgel999/miniz/tree/3.1.1
149
198
 
150
- License: MIT
151
-
152
199
  Copyright 2013-2014 RAD Game Tools and Valve Software
153
200
  Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
154
201
 
@@ -174,8 +221,6 @@ SOFTWARE.
174
221
 
175
222
  Source: https://github.com/kekyo/cardio/
176
223
 
177
- License: MIT
178
-
179
224
  Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
180
225
 
181
226
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -200,8 +245,6 @@ SOFTWARE.
200
245
 
201
246
  Source: https://github.com/kekyo/tra-ffic/
202
247
 
203
- License: MIT
204
-
205
248
  Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
206
249
 
207
250
  Permission is hereby granted, free of charge, to any person obtaining a copy
Binary file
@@ -1,11 +1,67 @@
1
- # Third Party Notices
1
+ # muon license
2
+
3
+ ## muon
4
+
5
+ Source: https://github.com/kekyo/muon-ui/
6
+
7
+ Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ ## Chromium Embedded Framework (CEF)
28
+
29
+ Source: https://github.com/chromiumembedded/cef/
30
+
31
+ Copyright (c) 2008-2020 Marshall A. Greenblatt. Portions Copyright (c)
32
+ 2006-2009 Google Inc. All rights reserved.
33
+
34
+ Redistribution and use in source and binary forms, with or without
35
+ modification, are permitted provided that the following conditions are
36
+ met:
37
+
38
+ * Redistributions of source code must retain the above copyright
39
+ notice, this list of conditions and the following disclaimer.
40
+ * Redistributions in binary form must reproduce the above
41
+ copyright notice, this list of conditions and the following disclaimer
42
+ in the documentation and/or other materials provided with the
43
+ distribution.
44
+ * Neither the name of Google Inc. nor the name Chromium Embedded
45
+ Framework nor the names of its contributors may be used to endorse
46
+ or promote products derived from this software without specific prior
47
+ written permission.
48
+
49
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
50
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
51
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
52
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
53
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
54
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
55
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
57
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
58
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
59
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
60
 
3
61
  ## libffi 3.4.6
4
62
 
5
63
  Source: https://github.com/libffi/libffi/releases/tag/v3.4.6
6
64
 
7
- License: MIT
8
-
9
65
  libffi - Copyright (c) 1996-2024 Anthony Green, Red Hat, Inc and others.
10
66
  See source files for details.
11
67
 
@@ -32,8 +88,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
88
 
33
89
  Source: https://github.com/ibireme/yyjson/tree/0.12.0
34
90
 
35
- License: MIT
36
-
37
91
  Copyright (c) 2020 YaoYuan <ibireme@gmail.com>
38
92
 
39
93
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -59,8 +113,6 @@ SOFTWARE.
59
113
  Source:
60
114
  https://github.com/NetBSD/src/tree/trunk/common/lib/libc/hash/sha1
61
115
 
62
- License: Public Domain
63
-
64
116
  SHA-1 in C
65
117
  By Steve Reid <steve@edmweb.com>
66
118
  100% Public Domain
@@ -69,9 +121,6 @@ By Steve Reid <steve@edmweb.com>
69
121
 
70
122
  Source: https://github.com/libarchive/libarchive/releases/tag/v3.8.7
71
123
 
72
- License: BSD-2-Clause with additional per-file license notes in the
73
- distribution.
74
-
75
124
  The libarchive distribution as a whole is Copyright by Tim Kientzle
76
125
  and is subject to the copyright notice reproduced below.
77
126
 
@@ -147,8 +196,6 @@ bzip2/libbzip2 version 1.0.8 of 13 July 2019
147
196
 
148
197
  Source: https://github.com/richgel999/miniz/tree/3.1.1
149
198
 
150
- License: MIT
151
-
152
199
  Copyright 2013-2014 RAD Game Tools and Valve Software
153
200
  Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
154
201
 
@@ -174,8 +221,6 @@ SOFTWARE.
174
221
 
175
222
  Source: https://github.com/kekyo/cardio/
176
223
 
177
- License: MIT
178
-
179
224
  Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
180
225
 
181
226
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -200,8 +245,6 @@ SOFTWARE.
200
245
 
201
246
  Source: https://github.com/kekyo/tra-ffic/
202
247
 
203
- License: MIT
204
-
205
248
  Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
206
249
 
207
250
  Permission is hereby granted, free of charge, to any person obtaining a copy
Binary file
@@ -1,11 +1,67 @@
1
- # Third Party Notices
1
+ # muon license
2
+
3
+ ## muon
4
+
5
+ Source: https://github.com/kekyo/muon-ui/
6
+
7
+ Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ ## Chromium Embedded Framework (CEF)
28
+
29
+ Source: https://github.com/chromiumembedded/cef/
30
+
31
+ Copyright (c) 2008-2020 Marshall A. Greenblatt. Portions Copyright (c)
32
+ 2006-2009 Google Inc. All rights reserved.
33
+
34
+ Redistribution and use in source and binary forms, with or without
35
+ modification, are permitted provided that the following conditions are
36
+ met:
37
+
38
+ * Redistributions of source code must retain the above copyright
39
+ notice, this list of conditions and the following disclaimer.
40
+ * Redistributions in binary form must reproduce the above
41
+ copyright notice, this list of conditions and the following disclaimer
42
+ in the documentation and/or other materials provided with the
43
+ distribution.
44
+ * Neither the name of Google Inc. nor the name Chromium Embedded
45
+ Framework nor the names of its contributors may be used to endorse
46
+ or promote products derived from this software without specific prior
47
+ written permission.
48
+
49
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
50
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
51
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
52
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
53
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
54
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
55
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
57
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
58
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
59
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
60
 
3
61
  ## libffi 3.4.6
4
62
 
5
63
  Source: https://github.com/libffi/libffi/releases/tag/v3.4.6
6
64
 
7
- License: MIT
8
-
9
65
  libffi - Copyright (c) 1996-2024 Anthony Green, Red Hat, Inc and others.
10
66
  See source files for details.
11
67
 
@@ -32,8 +88,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
88
 
33
89
  Source: https://github.com/ibireme/yyjson/tree/0.12.0
34
90
 
35
- License: MIT
36
-
37
91
  Copyright (c) 2020 YaoYuan <ibireme@gmail.com>
38
92
 
39
93
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -59,8 +113,6 @@ SOFTWARE.
59
113
  Source:
60
114
  https://github.com/NetBSD/src/tree/trunk/common/lib/libc/hash/sha1
61
115
 
62
- License: Public Domain
63
-
64
116
  SHA-1 in C
65
117
  By Steve Reid <steve@edmweb.com>
66
118
  100% Public Domain
@@ -69,9 +121,6 @@ By Steve Reid <steve@edmweb.com>
69
121
 
70
122
  Source: https://github.com/libarchive/libarchive/releases/tag/v3.8.7
71
123
 
72
- License: BSD-2-Clause with additional per-file license notes in the
73
- distribution.
74
-
75
124
  The libarchive distribution as a whole is Copyright by Tim Kientzle
76
125
  and is subject to the copyright notice reproduced below.
77
126
 
@@ -147,8 +196,6 @@ bzip2/libbzip2 version 1.0.8 of 13 July 2019
147
196
 
148
197
  Source: https://github.com/richgel999/miniz/tree/3.1.1
149
198
 
150
- License: MIT
151
-
152
199
  Copyright 2013-2014 RAD Game Tools and Valve Software
153
200
  Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
154
201
 
@@ -174,8 +221,6 @@ SOFTWARE.
174
221
 
175
222
  Source: https://github.com/kekyo/cardio/
176
223
 
177
- License: MIT
178
-
179
224
  Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
180
225
 
181
226
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -200,8 +245,6 @@ SOFTWARE.
200
245
 
201
246
  Source: https://github.com/kekyo/tra-ffic/
202
247
 
203
- License: MIT
204
-
205
248
  Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
206
249
 
207
250
  Permission is hereby granted, free of charge, to any person obtaining a copy
Binary file
@@ -1,11 +1,67 @@
1
- # Third Party Notices
1
+ # muon license
2
+
3
+ ## muon
4
+
5
+ Source: https://github.com/kekyo/muon-ui/
6
+
7
+ Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ ## Chromium Embedded Framework (CEF)
28
+
29
+ Source: https://github.com/chromiumembedded/cef/
30
+
31
+ Copyright (c) 2008-2020 Marshall A. Greenblatt. Portions Copyright (c)
32
+ 2006-2009 Google Inc. All rights reserved.
33
+
34
+ Redistribution and use in source and binary forms, with or without
35
+ modification, are permitted provided that the following conditions are
36
+ met:
37
+
38
+ * Redistributions of source code must retain the above copyright
39
+ notice, this list of conditions and the following disclaimer.
40
+ * Redistributions in binary form must reproduce the above
41
+ copyright notice, this list of conditions and the following disclaimer
42
+ in the documentation and/or other materials provided with the
43
+ distribution.
44
+ * Neither the name of Google Inc. nor the name Chromium Embedded
45
+ Framework nor the names of its contributors may be used to endorse
46
+ or promote products derived from this software without specific prior
47
+ written permission.
48
+
49
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
50
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
51
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
52
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
53
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
54
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
55
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
56
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
57
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
58
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
59
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2
60
 
3
61
  ## libffi 3.4.6
4
62
 
5
63
  Source: https://github.com/libffi/libffi/releases/tag/v3.4.6
6
64
 
7
- License: MIT
8
-
9
65
  libffi - Copyright (c) 1996-2024 Anthony Green, Red Hat, Inc and others.
10
66
  See source files for details.
11
67
 
@@ -32,8 +88,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
88
 
33
89
  Source: https://github.com/ibireme/yyjson/tree/0.12.0
34
90
 
35
- License: MIT
36
-
37
91
  Copyright (c) 2020 YaoYuan <ibireme@gmail.com>
38
92
 
39
93
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -59,8 +113,6 @@ SOFTWARE.
59
113
  Source:
60
114
  https://github.com/NetBSD/src/tree/trunk/common/lib/libc/hash/sha1
61
115
 
62
- License: Public Domain
63
-
64
116
  SHA-1 in C
65
117
  By Steve Reid <steve@edmweb.com>
66
118
  100% Public Domain
@@ -69,9 +121,6 @@ By Steve Reid <steve@edmweb.com>
69
121
 
70
122
  Source: https://github.com/libarchive/libarchive/releases/tag/v3.8.7
71
123
 
72
- License: BSD-2-Clause with additional per-file license notes in the
73
- distribution.
74
-
75
124
  The libarchive distribution as a whole is Copyright by Tim Kientzle
76
125
  and is subject to the copyright notice reproduced below.
77
126
 
@@ -147,8 +196,6 @@ bzip2/libbzip2 version 1.0.8 of 13 July 2019
147
196
 
148
197
  Source: https://github.com/richgel999/miniz/tree/3.1.1
149
198
 
150
- License: MIT
151
-
152
199
  Copyright 2013-2014 RAD Game Tools and Valve Software
153
200
  Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
154
201
 
@@ -174,8 +221,6 @@ SOFTWARE.
174
221
 
175
222
  Source: https://github.com/kekyo/cardio/
176
223
 
177
- License: MIT
178
-
179
224
  Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
180
225
 
181
226
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -200,8 +245,6 @@ SOFTWARE.
200
245
 
201
246
  Source: https://github.com/kekyo/tra-ffic/
202
247
 
203
- License: MIT
204
-
205
248
  Copyright (c) Kouji Matsui (@kekyo@mi.kekyo.net)
206
249
 
207
250
  Permission is hereby granted, free of charge, to any person obtaining a copy