mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
fix public key dont match problem when use generate_appcast with -s <private_key> <folder> arguments
This commit is contained in:
1 parent
d5222353e6
commit
6dbbf08654
1 file changed
+1
-1
@@ -33,7 +33,7 @@ func loadPrivateKeys(_ privateDSAKey: SecKey?, _ privateEdString: String?) -> Pr
|
||||
|
||||
// private + public key is provided as argument
|
||||
if let privateEdString = privateEdString {
|
||||
if privateEdString.count == 128, let data = privateEdString.data(using: .utf8) {
|
||||
if privateEdString.count == 128, let data = Data(base64Encoded: privateEdString) {
|
||||
keys = data
|
||||
} else {
|
||||
print("Warning: Private key not found in the argument. Please provide a valid key.");
|
||||
|
||||
Reference in new issue
Block a user