Update src/commands/signal-install.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Duarte Martins 2026-01-26 13:11:17 +01:00 committed by GitHub
parent da3fd178e0
commit 0001b68fad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,12 +54,14 @@ function pickAsset(assets: ReleaseAsset[], platform: NodeJS.Platform) {
return (
byName(/macos|osx|darwin/) ||
// Fall back to JVM version, excluding platform-specific native builds
withName.find(
(asset) =>
looksLikeArchive(asset.name.toLowerCase()) &&
!asset.name.toLowerCase().includes("linux-native") &&
!asset.name.toLowerCase().includes("windows"),
)
withName.find((asset) => {
const name = asset.name.toLowerCase();
return (
looksLikeArchive(name) &&
!name.includes("linux-native") &&
!/windows|win/.test(name)
);
})
);
}