mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Merge aliases into README app listings
This commit is contained in:
parent
5b84fe98d9
commit
33c7623bfd
1 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue