Compare commits

...

2 Commits

1 changed files with 16 additions and 2 deletions

View File

@ -14,6 +14,22 @@ const buildUpdates = async () => {
})) }))
} }
/**
* {
* addons: {
* [stringId1]: {
* updates: [
* {
* version: '1.0.9.xpi',
* update_link: `https://bb-addon.sagev.space/${file}`
* },
* ...
* ]
* },
* [stringId2]: ...
* }
* }
*/
const buildJson = async () => { const buildJson = async () => {
const uuid1 = '16f4f9af-ad27-41b7-adae-b0b08bc17b43' const uuid1 = '16f4f9af-ad27-41b7-adae-b0b08bc17b43'
const uuid2 = 'svaillancourt@add123.com' const uuid2 = 'svaillancourt@add123.com'
@ -23,8 +39,6 @@ const buildJson = async () => {
const updates = await buildUpdates() const updates = await buildUpdates()
object.addons[uuid1] = { updates } object.addons[uuid1] = { updates }
object.addons[uuid2] = { updates } object.addons[uuid2] = { updates }
// object.addons[`{${uuid1}}`] = { updates }
// object.addons[`{${uuid2}}`] = { updates }
return JSON.stringify(object, null, 2) return JSON.stringify(object, null, 2)
} }