muon-ui 0.24.0 → 0.25.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 +14 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +3 -3
- 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/libmuon-ui.so +0 -0
- package/dist/runtime/linux-amd64/muon-core +0 -0
- package/dist/runtime/linux-amd64/plugins/node-bridge.mjs +78 -64
- package/dist/runtime/linux-amd64/plugins/node.so +0 -0
- package/dist/runtime/linux-arm64/libmuon-ui.so +0 -0
- package/dist/runtime/linux-arm64/muon-core +0 -0
- package/dist/runtime/linux-arm64/plugins/node-bridge.mjs +78 -64
- package/dist/runtime/linux-arm64/plugins/node.so +0 -0
- package/dist/runtime/linux-armhf/libmuon-ui.so +0 -0
- package/dist/runtime/linux-armhf/muon-core +0 -0
- package/dist/runtime/linux-armhf/plugins/node-bridge.mjs +78 -64
- package/dist/runtime/linux-armhf/plugins/node.so +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-amd64/plugins/node-bridge.mjs +78 -64
- package/dist/runtime/windows-amd64/plugins/node.dll +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/runtime/windows-i686/plugins/node-bridge.mjs +78 -64
- package/dist/runtime/windows-i686/plugins/node.dll +0 -0
- package/dist/{vite-internals-BIthRkfD.cjs → vite-internals-CLwNqMCY.cjs} +73 -68
- package/dist/vite-internals-CLwNqMCY.cjs.map +1 -0
- package/dist/vite.cjs +17 -13
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.mjs +81 -73
- package/dist/vite.mjs.map +1 -1
- package/muon.d.ts +4 -11
- package/package.json +7 -7
- package/vite.d.ts +1 -4
- package/dist/vite-internals-BIthRkfD.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.25.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: 8b3386cabe3899a1cf80bb79b63479179e2b4259
|
|
10
10
|
*/
|
|
11
|
-
const require_vite_internals = require("./vite-internals-
|
|
11
|
+
const require_vite_internals = require("./vite-internals-CLwNqMCY.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");
|
|
@@ -249,7 +249,8 @@ var writeMuonDevOverrideConfig = async (overrideConfigPath, overrideConfig) => {
|
|
|
249
249
|
await (0, node_fs_promises.writeFile)(overrideConfigPath, `${JSON.stringify(overrideConfig, null, 2)}\n`);
|
|
250
250
|
};
|
|
251
251
|
var runMuonExecutable = async (muonExecutablePath, configPaths, environment) => {
|
|
252
|
-
const
|
|
252
|
+
const args = configPaths.flatMap((configPath) => ["-c", configPath]);
|
|
253
|
+
const child = (0, node_child_process.spawn)(muonExecutablePath, args, {
|
|
253
254
|
cwd: (0, node_path.dirname)(muonExecutablePath),
|
|
254
255
|
env: environment,
|
|
255
256
|
stdio: [
|
|
@@ -612,7 +613,8 @@ var createTarGzEntryGenerator = async function* (directory, entryRoot) {
|
|
|
612
613
|
var packageTarGz = async (target, metadata, artifactsRoot) => {
|
|
613
614
|
const outputPath = (0, node_path.join)(artifactsRoot, `${metadata.packageName}-${metadata.version}-${target.target}.tar.gz`);
|
|
614
615
|
await (0, node_fs_promises.mkdir)((0, node_path.dirname)(outputPath), { recursive: true });
|
|
615
|
-
|
|
616
|
+
const packer = (0, tar_vern.createTarPacker)(createTarGzEntryGenerator(target.outputPath, getPortableArchiveEntryRoot(target, metadata)), "gzip");
|
|
617
|
+
await (0, tar_vern.storeReaderToFile)(packer, outputPath);
|
|
616
618
|
return {
|
|
617
619
|
type: "tar.gz",
|
|
618
620
|
target: target.target,
|
|
@@ -631,7 +633,8 @@ var packageDeb = async (root, target, metadata, artifactsRoot, packageBuildRoot,
|
|
|
631
633
|
recursive: true,
|
|
632
634
|
force: true
|
|
633
635
|
});
|
|
634
|
-
const
|
|
636
|
+
const installRoot = (0, node_path.join)(packageRoot, "usr", "lib", metadata.packageName);
|
|
637
|
+
const installedDist = (0, node_path.join)(installRoot, target.distributionDirectoryName);
|
|
635
638
|
const privilegedPreparePath = `/usr/lib/${metadata.packageName}/${target.distributionDirectoryName}/${runtimeHelperExecutableName}`;
|
|
636
639
|
const systemRuntimePath = `${systemRuntimeRoot}/${metadata.packageName}/${target.target}/runtime`;
|
|
637
640
|
await (0, node_fs_promises.mkdir)(installedDist, { recursive: true });
|
|
@@ -1126,8 +1129,8 @@ var packMuonApp = async (options) => {
|
|
|
1126
1129
|
};
|
|
1127
1130
|
//#endregion
|
|
1128
1131
|
//#region src/generated/packageMetadata.ts
|
|
1129
|
-
var version = "0.
|
|
1130
|
-
var git_commit_hash = "
|
|
1132
|
+
var version = "0.25.0";
|
|
1133
|
+
var git_commit_hash = "8b3386cabe3899a1cf80bb79b63479179e2b4259";
|
|
1131
1134
|
//#endregion
|
|
1132
1135
|
//#region src/cli.ts
|
|
1133
1136
|
var readTargetValues = (value) => {
|
|
@@ -1268,7 +1271,7 @@ var runPackCommand = async (commandOptions, command) => {
|
|
|
1268
1271
|
else for (const artifact of result.artifacts) console.log(artifact.path);
|
|
1269
1272
|
};
|
|
1270
1273
|
var runPrepareCommand = async (commandOptions) => {
|
|
1271
|
-
const
|
|
1274
|
+
const prepareOptions = {
|
|
1272
1275
|
muonPath: commandOptions.muonPath ?? "",
|
|
1273
1276
|
cefPath: commandOptions.cefPath,
|
|
1274
1277
|
stageDir: commandOptions.stageDir,
|
|
@@ -1280,7 +1283,8 @@ var runPrepareCommand = async (commandOptions) => {
|
|
|
1280
1283
|
prepareExecutablePath: void 0,
|
|
1281
1284
|
environment: process.env,
|
|
1282
1285
|
cwd: process.cwd()
|
|
1283
|
-
}
|
|
1286
|
+
};
|
|
1287
|
+
const result = await require_vite_internals.runMuonPrepare(prepareOptions);
|
|
1284
1288
|
if (commandOptions.json === true) console.log(JSON.stringify(result, null, 2));
|
|
1285
1289
|
else console.log(result.stagePath ?? result.cefPath);
|
|
1286
1290
|
};
|