Require NVAlert, fix SHA256 check

This commit is contained in:
2024-07-16 18:06:41 +02:00
parent 70654ae6bc
commit bfe441fb2f
3 changed files with 17 additions and 3 deletions

View File

@ -107,7 +107,7 @@ open class SelfUpdater: NSObject, NSApplicationDelegate {
}
// Calculate the checksum for the downloaded file
let checksum = system("openssl dgst -sha256 \"\(updaterPath)/\(filename)\" | awk '{Log.text $NF}'")
let checksum = system("openssl dgst -sha256 \"\(updaterPath)/\(filename)\" | awk '{print $NF}'")
.trimmingCharacters(in: .whitespacesAndNewlines)
// Compare the checksums