@mirinjs/cli 0.1.0-alpha.12 → 0.1.0-alpha.14

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 (2) hide show
  1. package/package.json +6 -6
  2. package/src/release.ts +9 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirinjs/cli",
3
- "version": "0.1.0-alpha.12",
3
+ "version": "0.1.0-alpha.14",
4
4
  "description": "CLI for mirin apps: dev, build, init.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,13 +27,13 @@
27
27
  "bun": ">=1.2.0"
28
28
  },
29
29
  "dependencies": {
30
- "create-mirinjs": "0.1.0-alpha.12",
31
- "mirinjs": "0.1.0-alpha.12"
30
+ "create-mirinjs": "0.1.0-alpha.14",
31
+ "mirinjs": "0.1.0-alpha.14"
32
32
  },
33
33
  "optionalDependencies": {
34
- "@mirinjs/darwin-arm64": "0.1.0-alpha.12",
35
- "@mirinjs/win32-x64": "0.1.0-alpha.12",
36
- "@mirinjs/linux-x64": "0.1.0-alpha.12"
34
+ "@mirinjs/darwin-arm64": "0.1.0-alpha.14",
35
+ "@mirinjs/win32-x64": "0.1.0-alpha.14",
36
+ "@mirinjs/linux-x64": "0.1.0-alpha.14"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
package/src/release.ts CHANGED
@@ -60,9 +60,15 @@ export async function release(projectDir = process.cwd()): Promise<number> {
60
60
  // Load the codec (zstd/bsdiff) from the *bundled* core, not the raw build output:
61
61
  // on Windows mirin_core.dll imports libcef.dll. The DLL loader resolves imports
62
62
  // from PATH (and the loader exe's dir), not the dll's own dir, so prepend the
63
- // bundle dir to PATH so libcef.dll is found. (On macOS the framework loads at
64
- // runtime, so result.coreDylib works directly.)
65
- const codecCore = isWindows ? join(result.app, "mirin_core.dll") : result.coreDylib;
63
+ // bundle dir to PATH so libcef.dll is found. On Linux libmirin_core.so has a
64
+ // NEEDED libcef.so (RUNPATH $ORIGIN), so load the *bundled* .so where libcef.so
65
+ // sits beside it — the raw native package has no libcef.so and dlopen fails.
66
+ // (On macOS the framework loads at runtime, so result.coreDylib works directly.)
67
+ const codecCore = isWindows
68
+ ? join(result.app, "mirin_core.dll")
69
+ : isLinux
70
+ ? join(result.app, "libmirin_core.so")
71
+ : result.coreDylib;
66
72
  if (isWindows) process.env.PATH = `${result.app};${process.env.PATH ?? ""}`;
67
73
  const codec = loadCodec(codecCore);
68
74