( platform: ForgePlatform | string, declaredArch: ForgeArch | 'all' | string, electronVersion: string, )
| 5 | import { ForgeArch, ForgePlatform } from '@electron-forge/shared-types'; |
| 6 | |
| 7 | export default function parseArchs( |
| 8 | platform: ForgePlatform | string, |
| 9 | declaredArch: ForgeArch | 'all' | string, |
| 10 | electronVersion: string, |
| 11 | ): ForgeArch[] { |
| 12 | if (declaredArch === 'all') { |
| 13 | return ( |
| 14 | allOfficialArchsForPlatformAndVersion( |
| 15 | platform as SupportedPlatform, |
| 16 | electronVersion, |
| 17 | ) || ['x64'] |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | return declaredArch.split(',') as ForgeArch[]; |
| 22 | } |
no outgoing calls
no test coverage detected