diff --git a/src/releases.ts b/src/releases.ts index b4bc8ea..ec3978c 100644 --- a/src/releases.ts +++ b/src/releases.ts @@ -11,6 +11,7 @@ import { } from './target' export { NexeTarget } +const versionsToSkip = [0, 1, 2, 3, 4, 5, 7, 9, 11] export interface GitAsset { name: string url: string @@ -34,7 +35,7 @@ async function getJson(url: string, options?: any) { function isBuildableVersion(version: string) { const major = +version.split('.')[0] - return !~[0, 1, 2, 3, 4, 5, 7, 8, 10].indexOf(major) || version === '4.8.4' + return !~versionsToSkip.indexOf(major) || version === '4.8.4' } export function getLatestGitRelease(options?: any) {