chore: desktop workflow

This commit is contained in:
Mo
2022-06-11 20:37:41 -05:00
parent 2aac0294ef
commit 3b70495836
9 changed files with 214 additions and 78 deletions

View File

@@ -23,8 +23,13 @@ function sha256(filePath) {
let hashes = await Promise.all(
files.map(async (fileName) => {
const hash = await sha256(fileName)
return `${hash} ${fileName}`
try {
const hash = await sha256(fileName)
return `${hash} ${fileName}`
} catch (error) {
console.error('Unable to hash file', fileName)
return null
}
}),
)
hashes = hashes.join('\n')