mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add getStatusOfScan helper
This commit is contained in:
parent
8e476abea6
commit
07541ce785
1 changed files with 16 additions and 0 deletions
|
|
@ -17,4 +17,20 @@ export function getStatusName ( status ) {
|
|||
throw new Error('Non status matched')
|
||||
}
|
||||
|
||||
export function getStatusOfScan ( appScan, includeVersion = true ) {
|
||||
const statusName = getStatusName( appScan['Result'] )
|
||||
|
||||
if (statusName === 'native') {
|
||||
return [
|
||||
'✅ Yes, Full Native Apple Silicon Support',
|
||||
includeVersion ? `reported as of v${appScan['App Version']}` : ''
|
||||
].join('')
|
||||
}
|
||||
|
||||
|
||||
|
||||
return '🔶 App has not yet been reported to be native to Apple Silicon'
|
||||
}
|
||||
|
||||
|
||||
export default statuses
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue