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 ( return (
byName(/macos|osx|darwin/) || byName(/macos|osx|darwin/) ||
// Fall back to JVM version, excluding platform-specific native builds // Fall back to JVM version, excluding platform-specific native builds
withName.find( withName.find((asset) => {
(asset) => const name = asset.name.toLowerCase();
looksLikeArchive(asset.name.toLowerCase()) && return (
!asset.name.toLowerCase().includes("linux-native") && looksLikeArchive(name) &&
!asset.name.toLowerCase().includes("windows"), !name.includes("linux-native") &&
) !/windows|win/.test(name)
);
})
); );
} }