fix: correctly implement AppVersion equality and fix yt-dlp binary signing

This commit is contained in:
nimbold
2026-06-09 08:43:18 +03:30
parent 683eb45d0e
commit 7e185d06d1
2 changed files with 19 additions and 5 deletions
@@ -299,6 +299,21 @@ struct AppVersion: Comparable, CustomStringConvertible {
return false
}
static func == (lhs: AppVersion, rhs: AppVersion) -> Bool {
let count = max(lhs.components.count, rhs.components.count)
for index in 0..<count {
let left = index < lhs.components.count ? lhs.components[index] : 0
let right = index < rhs.components.count ? rhs.components[index] : 0
if left != right {
return false
}
}
return true
}
}
private extension JSONDecoder {