@corgea/cli 1.8.3 → 1.8.5
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/bin/corgea.js +5 -3
- package/package.json +1 -1
- package/vendor/aarch64-apple-darwin/corgea/corgea +0 -0
- package/vendor/aarch64-unknown-linux-gnu/corgea/corgea +0 -0
- package/vendor/x86_64-apple-darwin/corgea/corgea +0 -0
- package/vendor/x86_64-pc-windows-msvc/corgea/corgea.exe +0 -0
- package/vendor/x86_64-unknown-linux-musl/corgea/corgea +0 -0
package/bin/corgea.js
CHANGED
|
@@ -9,7 +9,7 @@ function resolveTargetTriple() {
|
|
|
9
9
|
switch (process.platform) {
|
|
10
10
|
case "linux":
|
|
11
11
|
case "android":
|
|
12
|
-
if (process.arch === "x64") return "x86_64-unknown-linux-
|
|
12
|
+
if (process.arch === "x64") return "x86_64-unknown-linux-musl";
|
|
13
13
|
if (process.arch === "arm64") return "aarch64-unknown-linux-gnu";
|
|
14
14
|
return null;
|
|
15
15
|
case "darwin":
|
|
@@ -26,7 +26,9 @@ function resolveTargetTriple() {
|
|
|
26
26
|
|
|
27
27
|
const targetTriple = resolveTargetTriple();
|
|
28
28
|
if (!targetTriple) {
|
|
29
|
-
throw new Error(
|
|
29
|
+
throw new Error(
|
|
30
|
+
`Unsupported platform: ${process.platform} (${process.arch})`,
|
|
31
|
+
);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
const binaryName = process.platform === "win32" ? "corgea.exe" : "corgea";
|
|
@@ -36,7 +38,7 @@ const binaryPath = path.join(vendorRoot, targetTriple, "corgea", binaryName);
|
|
|
36
38
|
if (!existsSync(binaryPath)) {
|
|
37
39
|
throw new Error(
|
|
38
40
|
`Corgea binary not found at ${binaryPath}.\n` +
|
|
39
|
-
|
|
41
|
+
`Try reinstalling: npm install -g corgea-cli@latest`,
|
|
40
42
|
);
|
|
41
43
|
}
|
|
42
44
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|