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.
- package/dist/cli.cjs +15 -15
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/native/linux-amd64/muon-builder +0 -0
- package/dist/native/linux-amd64/{muon-bootstrap → muon-launcher} +0 -0
- package/dist/native/linux-amd64/muon-runtime-helper +0 -0
- package/dist/native/linux-arm64/muon-builder +0 -0
- package/dist/native/linux-arm64/{muon-bootstrap → muon-launcher} +0 -0
- package/dist/native/linux-arm64/muon-runtime-helper +0 -0
- package/dist/native/linux-armhf/muon-builder +0 -0
- package/dist/native/linux-armhf/{muon-bootstrap → muon-launcher} +0 -0
- package/dist/native/linux-armhf/muon-runtime-helper +0 -0
- package/dist/native/windows-amd64/muon-builder.exe +0 -0
- package/dist/native/windows-amd64/{muon-bootstrap.exe → muon-launcher.exe} +0 -0
- package/dist/native/windows-i686/muon-builder.exe +0 -0
- package/dist/native/windows-i686/{muon-bootstrap.exe → muon-launcher.exe} +0 -0
- package/dist/runtime/linux-amd64/CREDITS.md +31 -0
- package/dist/runtime/linux-amd64/muon-core +0 -0
- package/dist/runtime/linux-arm64/CREDITS.md +31 -0
- package/dist/runtime/linux-arm64/muon-core +0 -0
- package/dist/runtime/linux-armhf/CREDITS.md +31 -0
- package/dist/runtime/linux-armhf/muon-core +0 -0
- package/dist/runtime/windows-amd64/CREDITS.md +31 -0
- package/dist/runtime/windows-amd64/libcardio.dll +0 -0
- package/dist/runtime/windows-amd64/libmuon-ui.dll +0 -0
- package/dist/runtime/windows-amd64/muon-core.exe +0 -0
- package/dist/runtime/windows-i686/CREDITS.md +31 -0
- package/dist/runtime/windows-i686/libcardio.dll +0 -0
- package/dist/runtime/windows-i686/libmuon-ui.dll +0 -0
- package/dist/runtime/windows-i686/muon-core.exe +0 -0
- package/dist/{vite-internals-BInO_2N9.cjs → vite-internals-BNuD6EFm.cjs} +69 -70
- package/dist/vite-internals-BNuD6EFm.cjs.map +1 -0
- package/dist/vite.cjs +15 -5
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +76 -67
- package/dist/vite.mjs.map +1 -1
- package/images/vscode.png +0 -0
- package/muon.d.ts +38 -22
- package/package.json +7 -7
- package/vite.d.ts +6 -5
- 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.
|
|
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:
|
|
9
|
+
* git.commit.hash: a54e20c0496ee705422cfec16a02933146163e63
|
|
10
10
|
*/
|
|
11
|
-
const require_vite_internals = require("./vite-internals-
|
|
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.
|
|
1097
|
-
var git_commit_hash = "
|
|
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.
|
|
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.
|
|
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
|
|
1290
|
-
|
|
1289
|
+
const launcherResult = commandOptions.launcherPath === void 0 ? void 0 : await require_vite_internals.embedMuonConfigInLauncherFile({
|
|
1290
|
+
launcherPath: commandOptions.launcherPath,
|
|
1291
1291
|
configPath,
|
|
1292
|
-
outputPath: commandOptions.
|
|
1292
|
+
outputPath: commandOptions.outputLauncher
|
|
1293
1293
|
});
|
|
1294
|
-
if (coreResult !== 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
|
-
|
|
1297
|
+
launcher: launcherResult
|
|
1298
1298
|
}, null, 2));
|
|
1299
|
-
else console.log(`${coreResult.outputPath}\n${
|
|
1299
|
+
else console.log(`${coreResult.outputPath}\n${launcherResult.outputPath}`);
|
|
1300
1300
|
return;
|
|
1301
1301
|
}
|
|
1302
|
-
const result = coreResult ??
|
|
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("--
|
|
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;
|