mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
Ship only the native Swift app on macOS.
GTK packaging stays for Linux and Windows; the Mac installer and updates use the Swift zip. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
58e3a75f21
commit
011bc3c685
7 changed files with 71 additions and 524 deletions
|
|
@ -24,7 +24,7 @@ final class Updater {
|
|||
let atom = try self.get("https://github.com/\(self.repo)/commits/\(self.branch).atom")
|
||||
let remote: String
|
||||
if let tip = self.atomTip(atom),
|
||||
let marker = try? self.get("https://raw.githubusercontent.com/\(self.repo)/\(tip)/VERSION-macos-swift")
|
||||
let marker = try? self.get("https://raw.githubusercontent.com/\(self.repo)/\(tip)/VERSION-macos")
|
||||
.trimmingCharacters(in: .whitespacesAndNewlines),
|
||||
marker.count >= 7 {
|
||||
remote = marker
|
||||
|
|
@ -90,9 +90,9 @@ final class Updater {
|
|||
|
||||
private static func assetName() -> String {
|
||||
#if arch(arm64)
|
||||
return "maturita-macos-swift-arm64.zip"
|
||||
return "maturita-macos-arm64.zip"
|
||||
#else
|
||||
return "maturita-macos-swift-x86_64.zip"
|
||||
return "maturita-macos-x86_64.zip"
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue