Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

App update bug fix

altic-dev9f94ea81c0ba
diff --git a/Sources/Fluid/Services/SimpleUpdater.swift b/Sources/Fluid/Services/SimpleUpdater.swift
index 16d200ba..2fb60cfd 100644
--- a/Sources/Fluid/Services/SimpleUpdater.swift
+++ b/Sources/Fluid/Services/SimpleUpdater.swift
@@ -237,7 +237,14 @@ final class SimpleUpdater {
// MARK: - Helpers
private func parseVersion(_ s: String) -> [Int] {
- let t = s.hasPrefix("v") ? String(s.dropFirst()) : s
+ var t = s.hasPrefix("v") ? String(s.dropFirst()) : s
+
+ // Strip any suffix after hyphen (e.g., "1.5.2-beta.1" → "1.5.2")
+ // This handles pre-release suffixes like -beta, -alpha, -rc1, etc.
+ if let hyphenIndex = t.firstIndex(of: "-") {
+ t = String(t[..<hyphenIndex])
+ }
+
let comps = t.split(separator: ".").map { Int($0) ?? 0 }
return [comps[safe: 0] ?? 0, comps[safe: 1] ?? 0, comps[safe: 2] ?? 0]
}