Point installers and updaters at the Graduately repository.

GitHub and Forgejo were renamed; keep artifact filenames, update repo URLs and remotes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
pepaskopec-blip 2026-09-23 21:24:35 +02:00
commit d9bba71442
21 changed files with 55 additions and 53 deletions

View file

@ -13,7 +13,7 @@ enum AppConfig {
static var updateRepo: String {
(Bundle.main.object(forInfoDictionaryKey: "UPDATE_REPO") as? String)
?? "pepaskopec-blip/maturita.c"
?? "pepaskopec-blip/Graduately"
}
static var updateBranch: String {

View file

@ -9,6 +9,6 @@
<key>UPDATE_BRANCH</key>
<string>builds</string>
<key>UPDATE_REPO</key>
<string>pepaskopec-blip/maturita.c</string>
<string>pepaskopec-blip/Graduately</string>
</dict>
</plist>

View file

@ -99,7 +99,7 @@ final class Updater {
private func get(_ url: String) throws -> String {
guard let u = URL(string: url) else { throw URLError(.badURL) }
var req = URLRequest(url: u, timeoutInterval: 15)
req.setValue("maturita.c-ios", forHTTPHeaderField: "User-Agent")
req.setValue("Graduately-ios", forHTTPHeaderField: "User-Agent")
req.setValue("*/*", forHTTPHeaderField: "Accept")
let sem = DispatchSemaphore(value: 0)
var result: Result<String, Error> = .failure(URLError(.unknown))