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 (
|
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)
|
||||||
|
);
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user