@corca-org/ceal 1.0.6 → 1.0.9
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/README.md +1 -1
- package/bin/ceal.js +1 -1
- package/bin/cealctl.js +1 -1
- package/bin/launch.js +10 -1
- package/package.json +8 -5
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# @corca-org/ceal
|
|
2
2
|
|
|
3
|
-
The Ceal command-line client for npm-supported platforms. The package installs the platform-specific
|
|
3
|
+
The Ceal command-line client for npm-supported platforms. The package installs the platform-specific signed `ceal` binary and also installs `cealctl` on Linux and Apple Silicon macOS.
|
|
4
4
|
|
|
5
5
|
Install globally with `npm install -g @corca-org/ceal`. Use `npm update -g @corca-org/ceal` to update and `npm uninstall -g @corca-org/ceal` to remove it. Run `ceal doctor` to inspect the installed client without changing anything.
|
package/bin/ceal.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { launch } from "./launch.js"; await launch({ meta: "ceal", product: "ceal", supported: ["linux-x64",
|
|
2
|
+
import { launch } from "./launch.js"; await launch({ meta: "ceal", product: "ceal", supported: ["linux-x64","linux-arm64","darwin-arm64","win32-x64"], binaryName: "ceal", companion: { packageName: "@corca-org/ceal-host", entry: "bin/ceal-host.js", env: "CEAL_HOST_LAUNCHER_PATH" } });
|
package/bin/cealctl.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { launch } from "./launch.js"; await launch({ meta: "ceal", product: "cealctl", supported: ["linux-x64",
|
|
2
|
+
import { launch } from "./launch.js"; await launch({ meta: "ceal", product: "cealctl", supported: ["linux-x64","linux-arm64","darwin-arm64"], binaryName: "cealctl" });
|
package/bin/launch.js
CHANGED
|
@@ -22,10 +22,19 @@ export function launch(input) {
|
|
|
22
22
|
}
|
|
23
23
|
const executableName = process.platform === "win32" ? `${input.binaryName}.exe` : input.binaryName;
|
|
24
24
|
const launcherPath = process.env.CEAL_LAUNCHER_PATH ?? process.argv[1] ?? null;
|
|
25
|
+
let companionEnvironment = {};
|
|
26
|
+
if (input.companion) {
|
|
27
|
+
try {
|
|
28
|
+
const root = dirname(require.resolve(`${input.companion.packageName}/package.json`));
|
|
29
|
+
companionEnvironment[input.companion.env] = join(root, input.companion.entry);
|
|
30
|
+
} catch {
|
|
31
|
+
return refuse(input.product, `required package ${input.companion.packageName} is unavailable.`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
25
34
|
const child = spawn(join(packageRoot, "bin", executableName), process.argv.slice(2), {
|
|
26
35
|
stdio: "inherit",
|
|
27
36
|
windowsHide: process.platform === "win32" ? false : undefined,
|
|
28
|
-
env: { ...process.env, ...(launcherPath === null ? {} : { CEAL_LAUNCHER_PATH: launcherPath }) },
|
|
37
|
+
env: { ...process.env, ...companionEnvironment, ...(launcherPath === null ? {} : { CEAL_LAUNCHER_PATH: launcherPath }) },
|
|
29
38
|
});
|
|
30
39
|
child.once("error", (error) => {
|
|
31
40
|
process.stderr.write(`${input.product}: could not start the platform binary: ${error.message}\n`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corca-org/ceal",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "The Ceal command-line client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -12,10 +12,13 @@
|
|
|
12
12
|
"cealctl": "bin/cealctl.js"
|
|
13
13
|
},
|
|
14
14
|
"optionalDependencies": {
|
|
15
|
-
"@corca-org/ceal-linux-x64": "1.0.
|
|
16
|
-
"@corca-org/ceal-linux-arm64": "1.0.
|
|
17
|
-
"@corca-org/ceal-darwin-arm64": "1.0.
|
|
18
|
-
"@corca-org/ceal-win32-x64": "1.0.
|
|
15
|
+
"@corca-org/ceal-linux-x64": "1.0.9",
|
|
16
|
+
"@corca-org/ceal-linux-arm64": "1.0.9",
|
|
17
|
+
"@corca-org/ceal-darwin-arm64": "1.0.9",
|
|
18
|
+
"@corca-org/ceal-win32-x64": "1.0.9"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@corca-org/ceal-host": "1.0.9"
|
|
19
22
|
},
|
|
20
23
|
"repository": {
|
|
21
24
|
"type": "git",
|