diff --git a/Cargo.lock b/Cargo.lock index 5958a4d..8920232 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -311,7 +311,7 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "corgea" -version = "1.8.3" +version = "1.8.4" dependencies = [ "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index a25d59e..03c5811 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "corgea" -version = "1.8.3" +version = "1.8.4" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/bin/corgea.js b/bin/corgea.js index cddf54f..f68895d 100755 --- a/bin/corgea.js +++ b/bin/corgea.js @@ -9,7 +9,7 @@ function resolveTargetTriple() { switch (process.platform) { case "linux": case "android": - if (process.arch === "x64") return "x86_64-unknown-linux-gnu"; + if (process.arch === "x64") return "x86_64-unknown-linux-musl"; if (process.arch === "arm64") return "aarch64-unknown-linux-gnu"; return null; case "darwin": @@ -26,7 +26,9 @@ function resolveTargetTriple() { const targetTriple = resolveTargetTriple(); if (!targetTriple) { - throw new Error(`Unsupported platform: ${process.platform} (${process.arch})`); + throw new Error( + `Unsupported platform: ${process.platform} (${process.arch})`, + ); } const binaryName = process.platform === "win32" ? "corgea.exe" : "corgea"; @@ -36,7 +38,7 @@ const binaryPath = path.join(vendorRoot, targetTriple, "corgea", binaryName); if (!existsSync(binaryPath)) { throw new Error( `Corgea binary not found at ${binaryPath}.\n` + - `Try reinstalling: npm install -g corgea-cli@latest` + `Try reinstalling: npm install -g corgea-cli@latest`, ); }