Move ClaudeChecker builds and updates to Gitea
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.3.3-beta.5</string>
|
||||
<string>1.3.3</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>81</string>
|
||||
<string>82</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>13.0</string>
|
||||
<key>LSUIElement</key>
|
||||
|
||||
@@ -30,8 +30,8 @@ enum UpdateError: LocalizedError {
|
||||
@MainActor
|
||||
class UpdateManager: ObservableObject {
|
||||
|
||||
static let versionURL = "https://raw.githubusercontent.com/superdooper86/claudechecker/refs/heads/main/version.json"
|
||||
static let betaVersionURL = "https://raw.githubusercontent.com/superdooper86/claudechecker/refs/heads/main/version-beta.json"
|
||||
static let versionURL = "https://git.jamesbone.net/coder/claudechecker/raw/branch/main/version.json"
|
||||
static let betaVersionURL = "https://git.jamesbone.net/coder/claudechecker/raw/branch/main/version-beta.json"
|
||||
|
||||
@Published var updateAvailable = false
|
||||
@Published var latestVersion = ""
|
||||
@@ -118,7 +118,7 @@ class UpdateManager: ObservableObject {
|
||||
}
|
||||
|
||||
private func fetchVersion(from urlString: String) async -> VersionInfo? {
|
||||
// Add timestamp to bust GitHub's 5-minute CDN cache
|
||||
// Add timestamp to bust cached update metadata
|
||||
let cacheBusted = urlString + "?t=\(Int(Date().timeIntervalSince1970))"
|
||||
guard let url = URL(string: cacheBusted) else {
|
||||
print("[UpdateManager] Invalid URL: \(urlString)")
|
||||
|
||||
Reference in New Issue
Block a user