chore(desktop): fix sums file
This commit is contained in:
@@ -9,8 +9,10 @@ function sha256(filePath) {
|
|||||||
.on('finish', function () {
|
.on('finish', function () {
|
||||||
resolve(this.read())
|
resolve(this.read())
|
||||||
})
|
})
|
||||||
.on('error', reject)
|
.on('error', resolve(null))
|
||||||
} catch (error) {}
|
} catch (error) {
|
||||||
|
resolve(null)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,11 +73,11 @@ process.on('uncaughtException', function (err) {
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
hashes = hashes.join('\n')
|
hashes = hashes.join('\n')
|
||||||
await fs.promises.writeFile('dist/SHA256SUMS', hashes)
|
await fs.promises.writeFile('dist/SHA256SUMS', hashes)
|
||||||
console.log(`Successfully wrote SHA256SUMS:\n${hashes}`)
|
console.log(`Successfully wrote SHA256SUMS:\n${hashes}`)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
process.exitCode = 1
|
|
||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
|
|||||||
Reference in New Issue
Block a user