chore: desktop workflow

This commit is contained in:
Mo
2022-06-12 08:42:05 -05:00
parent 1a5a4ff096
commit 13eb78652f
5 changed files with 29 additions and 17 deletions

View File

@@ -4,15 +4,21 @@ import { getLatestBuiltFilesList } from './utils.mjs'
function sha256(filePath) {
return new Promise((resolve, reject) => {
fs.createReadStream(filePath)
.pipe(crypto.createHash('sha256').setEncoding('hex'))
.on('finish', function () {
resolve(this.read())
})
.on('error', reject)
try {
fs.createReadStream(filePath)
.pipe(crypto.createHash('sha256').setEncoding('hex'))
.on('finish', function () {
resolve(this.read())
})
.on('error', reject)
} catch (error) {}
})
}
process.on('uncaughtException', function (err) {
console.log('Caught exception: ' + err)
})
;(async () => {
console.log('Writing SHA256 sums to dist/SHA256SUMS')