muon-ui 0.18.0 → 0.19.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 +11 -9
- 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-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-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-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-launcher.exe +0 -0
- package/dist/native/windows-amd64/muon-plugin-inspector.exe +0 -0
- package/dist/native/windows-i686/muon-builder.exe +0 -0
- package/dist/native/windows-i686/muon-launcher.exe +0 -0
- package/dist/native/windows-i686/muon-plugin-inspector.exe +0 -0
- package/dist/runtime/linux-amd64/muon-core +0 -0
- package/dist/runtime/linux-arm64/muon-core +0 -0
- package/dist/runtime/linux-armhf/muon-core +0 -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/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-_Wv0-FW6.cjs → vite-internals-BqnOn7M6.cjs} +7 -7
- package/dist/{vite-internals-_Wv0-FW6.cjs.map → vite-internals-BqnOn7M6.cjs.map} +1 -1
- package/dist/vite.cjs +3 -3
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +5 -5
- package/dist/vite.mjs.map +1 -1
- package/package.json +7 -7
- package/vite.d.ts +10 -0
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.19.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: 7b7fb7ea982e11163531485618fa27453d547280
|
|
10
10
|
*/
|
|
11
|
-
const require_vite_internals = require("./vite-internals-
|
|
11
|
+
const require_vite_internals = require("./vite-internals-BqnOn7M6.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");
|
|
@@ -240,8 +240,8 @@ var writeMuonDevOverrideConfig = async (overrideConfigPath, overrideConfig) => {
|
|
|
240
240
|
await (0, node_fs_promises.mkdir)((0, node_path.dirname)(overrideConfigPath), { recursive: true });
|
|
241
241
|
await (0, node_fs_promises.writeFile)(overrideConfigPath, `${JSON.stringify(overrideConfig, null, 2)}\n`);
|
|
242
242
|
};
|
|
243
|
-
var runMuonExecutable = async (muonExecutablePath, configPaths, environment) => {
|
|
244
|
-
const child = (0, node_child_process.spawn)(muonExecutablePath, configPaths.flatMap((configPath) => ["-c", configPath]), {
|
|
243
|
+
var runMuonExecutable = async (muonExecutablePath, configPaths, allowInsecureLocalhost, environment) => {
|
|
244
|
+
const child = (0, node_child_process.spawn)(muonExecutablePath, [...configPaths.flatMap((configPath) => ["-c", configPath]), ...allowInsecureLocalhost ? ["--allow-insecure-localhost"] : []], {
|
|
245
245
|
cwd: (0, node_path.dirname)(muonExecutablePath),
|
|
246
246
|
env: environment,
|
|
247
247
|
stdio: [
|
|
@@ -279,6 +279,7 @@ var runMuonDevOnce = async (options, cwd, reportViteServerProxyWarning) => {
|
|
|
279
279
|
const cefPath = options.cefPath !== void 0 ? resolveFromRoot(root, options.cefPath) : pluginOptions?.cefPath === void 0 ? void 0 : resolveFromRoot(root, pluginOptions.cefPath);
|
|
280
280
|
const stagePath = options.stagePath !== void 0 ? resolveFromRoot(root, options.stagePath) : pluginOptions?.stagePath === void 0 ? (0, node_path.resolve)(root, ".muon", target) : resolveFromRoot(root, pluginOptions.stagePath);
|
|
281
281
|
const enableDebugger = options.enableDebugger ?? pluginOptions?.enableDebugger ?? true;
|
|
282
|
+
const allowInsecureLocalhost = options.allowInsecureLocalhost ?? pluginOptions?.allowInsecureLocalhost ?? false;
|
|
282
283
|
const projectConfig = await resolveProjectConfig(root, options.configPath ?? preparedViteAssets?.configPath);
|
|
283
284
|
const asset = preparedViteAssets === void 0 ? await resolveAssetSource(root, options.assetSourcePath, projectConfig) : {
|
|
284
285
|
assetSourcePath: preparedViteAssets.assetSourcePath,
|
|
@@ -302,7 +303,7 @@ var runMuonDevOnce = async (options, cwd, reportViteServerProxyWarning) => {
|
|
|
302
303
|
if (preparedRuntime.stagePath === void 0) throw new Error("muon-builder did not return a staged runtime path.");
|
|
303
304
|
await writeMuonDevOverrideConfig(overrideConfigPath, createMuonDevOverrideConfig(asset.overrideAssetSourcePath, enableDebugger, browserStartPage, preparedViteAssets?.runtimePluginConfig));
|
|
304
305
|
const muonExecutablePath = require_vite_internals.getMuonExecutablePath(preparedRuntime.stagePath, platform);
|
|
305
|
-
const exitCode = await runMuonExecutable(muonExecutablePath, [...projectConfig.configPath === void 0 ? [] : [projectConfig.configPath], overrideConfigPath], environment);
|
|
306
|
+
const exitCode = await runMuonExecutable(muonExecutablePath, [...projectConfig.configPath === void 0 ? [] : [projectConfig.configPath], overrideConfigPath], allowInsecureLocalhost, environment);
|
|
306
307
|
return {
|
|
307
308
|
root,
|
|
308
309
|
target,
|
|
@@ -1107,8 +1108,8 @@ var packMuonApp = async (options) => {
|
|
|
1107
1108
|
};
|
|
1108
1109
|
//#endregion
|
|
1109
1110
|
//#region src/generated/packageMetadata.ts
|
|
1110
|
-
var version = "0.
|
|
1111
|
-
var git_commit_hash = "
|
|
1111
|
+
var version = "0.19.0";
|
|
1112
|
+
var git_commit_hash = "7b7fb7ea982e11163531485618fa27453d547280";
|
|
1112
1113
|
//#endregion
|
|
1113
1114
|
//#region src/cli.ts
|
|
1114
1115
|
var readTargetValues = (value) => {
|
|
@@ -1279,6 +1280,7 @@ var runDevCommand = async (commandOptions, command) => {
|
|
|
1279
1280
|
if (commandOptions.config !== void 0) devOptions.configPath = commandOptions.config;
|
|
1280
1281
|
if (commandOptions.assets !== void 0) devOptions.assetSourcePath = commandOptions.assets;
|
|
1281
1282
|
if (command.getOptionValueSource("debugger") === "cli") devOptions.enableDebugger = commandOptions.debugger === true;
|
|
1283
|
+
if (commandOptions.allowInsecureLocalhost === true) devOptions.allowInsecureLocalhost = true;
|
|
1282
1284
|
const result = await runMuonDev(devOptions);
|
|
1283
1285
|
if (commandOptions.json === true) console.log(JSON.stringify(result, null, 2));
|
|
1284
1286
|
if (result.exitCode !== 0) process.exitCode = result.exitCode;
|
|
@@ -1332,7 +1334,7 @@ var createCliCommand = () => {
|
|
|
1332
1334
|
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("--windows-sign-command <command>", "Windows code signing command").option("--windows-sign-arg <arg>", "Windows code signing command argument", appendWindowsSignArgValue).option("--windows-sign-target <target>", "Windows code signing target or comma-separated targets", appendWindowsSignTargetValues).option("--no-windows-code-signing", "disable muon.json Windows signing").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, command) => {
|
|
1333
1335
|
await runPackCommand(options, command);
|
|
1334
1336
|
});
|
|
1335
|
-
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) => {
|
|
1337
|
+
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("--allow-insecure-localhost", "ignore invalid HTTPS certificates for localhost").option("--json", "write result as JSON").action(async (options) => {
|
|
1336
1338
|
await runDevCommand(options, devCommand);
|
|
1337
1339
|
});
|
|
1338
1340
|
program.command("init").description("Initialize muon project helper files").action(async () => {
|