Generate update manifests for addons

This commit is contained in:
trickypr 2022-07-12 16:29:27 +10:00
parent d848fd1848
commit 5f2b57c826
9 changed files with 90 additions and 27 deletions

View file

@ -1,5 +1,5 @@
import { existsSync } from 'fs'
import { readFile, stat, writeFile } from 'fs/promises'
import { readFile, writeFile } from 'fs/promises'
import { parse } from 'ini'
import { isAppleSilicon } from 'is-apple-silicon'
import { dirname, join } from 'path'
@ -11,6 +11,7 @@ import {
dynamicConfig,
ensureEmpty,
generateHash,
getSize,
ReleaseInfo,
} from '../../utils'
@ -165,7 +166,7 @@ export async function generateBrowserUpdateFiles() {
'@URL': completeMarURL,
'@hashFunction': 'sha512',
'@hashValue': marHash,
'@size': (await stat(marPath)).size,
'@size': await getSize(marPath),
},
},
},