( releases: any, architecture: string, platform: string )
| 274 | } |
| 275 | |
| 276 | export function findAssetForMacOrLinux( |
| 277 | releases: any, |
| 278 | architecture: string, |
| 279 | platform: string |
| 280 | ) { |
| 281 | architecture = pypyArchitecture(architecture); |
| 282 | return releases.files.find( |
| 283 | (item: any) => item.arch === architecture && item.platform === platform |
| 284 | ); |
| 285 | } |
| 286 | |
| 287 | function pypyArchitecture(architecture: string): string { |
| 288 | if (IS_WINDOWS && architecture === 'x32') { |
no test coverage detected