mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add supportedArchitectures helper
This commit is contained in:
parent
d574d9fd7c
commit
2033c37e29
1 changed files with 13 additions and 0 deletions
13
helpers/bundles.js
Normal file
13
helpers/bundles.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
export function supportedArchitectures ( appScan ) {
|
||||
// if ( Array.isArray(appScan['Macho Meta']) ) {
|
||||
// return appScan['Macho Meta'].map( architecture => architecture.processorType)
|
||||
// }
|
||||
|
||||
// console.log('meta', appScan['Macho Meta'])
|
||||
|
||||
if ( appScan['Macho Meta'].architectures === undefined ) return []
|
||||
|
||||
return appScan['Macho Meta'].architectures
|
||||
.map( architecture => architecture.processorType)
|
||||
.filter(processorType => Number(processorType) !== 0)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue