This commit is contained in:
Vladimir Safonkin 2022-10-13 17:55:35 +02:00
parent ffca1d453b
commit 5041c3b04f
2 changed files with 6 additions and 0 deletions

View file

@ -228,6 +228,9 @@ export function isArchPresentForMacOrLinux(
}
export function findAssetForWindows(releases: any, architecture: string) {
if (architecture === 'x32') {
architecture = 'x86';
}
return releases.files.find(
(item: any) => {
return item.arch === architecture && WINDOWS_PLATFORMS.includes(item.platform);