Merge 0001b68fad into 09be5d45d5
This commit is contained in:
commit
c432284cc6
@ -53,13 +53,27 @@ function pickAsset(assets: ReleaseAsset[], platform: NodeJS.Platform) {
|
|||||||
if (platform === "darwin") {
|
if (platform === "darwin") {
|
||||||
return (
|
return (
|
||||||
byName(/macos|osx|darwin/) ||
|
byName(/macos|osx|darwin/) ||
|
||||||
withName.find((asset) => looksLikeArchive(asset.name.toLowerCase()))
|
// Fall back to JVM version, excluding platform-specific native builds
|
||||||
|
withName.find((asset) => {
|
||||||
|
const name = asset.name.toLowerCase();
|
||||||
|
return (
|
||||||
|
looksLikeArchive(name) &&
|
||||||
|
!name.includes("linux-native") &&
|
||||||
|
!/windows|win/.test(name)
|
||||||
|
);
|
||||||
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (platform === "win32") {
|
if (platform === "win32") {
|
||||||
return (
|
return (
|
||||||
byName(/windows|win/) || withName.find((asset) => looksLikeArchive(asset.name.toLowerCase()))
|
byName(/windows|win/) ||
|
||||||
|
// Fall back to JVM version, excluding platform-specific native builds
|
||||||
|
withName.find(
|
||||||
|
(asset) =>
|
||||||
|
looksLikeArchive(asset.name.toLowerCase()) &&
|
||||||
|
!asset.name.toLowerCase().includes("linux-native"),
|
||||||
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user