Skip to content

Commit

Permalink
block Windows 32 bit on v23 and up (nodejs#7133)
Browse files Browse the repository at this point in the history
* block Windows 32 bit on v23 and up

Signed-off-by: Alex Schwartz <[email protected]>

* Update BitnessDropdown.tsx

Signed-off-by: Alex Schwartz <[email protected]>

---------

Signed-off-by: Alex Schwartz <[email protected]>
  • Loading branch information
alexsch01 authored Oct 21, 2024
1 parent 834b69d commit f69a421
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/site/components/Downloads/Release/BitnessDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const BitnessDropdown: FC = () => {
disabledItems.push('arm64');
}

if (os === 'WIN' && semVer.satisfies(release.version, '>= 23.0.0')) {
disabledItems.push('86');
}

if (os === 'LINUX' && semVer.satisfies(release.version, '< 4.0.0')) {
disabledItems.push('arm64', 'armv7l');
}
Expand Down
8 changes: 8 additions & 0 deletions apps/site/scripts/release-post/downloadsTable.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ const resolveDownloads = version => {
);
}

if (semVer.satisfies(version, '>= 23.0.0')) {
downloads = downloads.filter(
ver =>
ver.title !== 'Windows 32-bit Installer' &&
ver.title !== 'Windows 32-bit Binary'
);
}

return downloads;
};

Expand Down

0 comments on commit f69a421

Please sign in to comment.