Merge aliases into README app listings

This commit is contained in:
Sam Carlton 2021-05-25 09:12:44 -05:00
parent 5b84fe98d9
commit 33c7623bfd

View file

@ -283,6 +283,7 @@ export default async function () {
let bundleId = null
let tags = []
let aliases = []
// Search for this app in the scanList and remove duplicates
scanListMap.forEach( ( scannedApp, key ) => {
@ -301,6 +302,12 @@ export default async function () {
...scannedApp.tags
]))
// Merge as set then convert to array to prevent duplicates
aliases = Array.from(new Set([
...aliases,
...scannedApp.aliases
]))
console.log(`Merged ${alias} (${scannedApp.bundleId}) from scanned apps into ${name} from README`)
scanListMap.delete( key )
}
@ -342,6 +349,7 @@ export default async function () {
appList.push({
name,
aliases,
status,
bundleId,
lastUpdated,