Update src/commands/signal-install.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
da3fd178e0
commit
0001b68fad
@ -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)
|
||||
);
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user