mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-27 19:17:13 +00:00
fix(updates): harden Sparkle release metadata
This commit is contained in:
+16
@@ -2,7 +2,23 @@
|
|||||||
.build/
|
.build/
|
||||||
build/
|
build/
|
||||||
dist/
|
dist/
|
||||||
|
*.dmg
|
||||||
DerivedData/
|
DerivedData/
|
||||||
.vscode/
|
.vscode/
|
||||||
*.xcuserdata/
|
*.xcuserdata/
|
||||||
*.xcuserstate
|
*.xcuserstate
|
||||||
|
|
||||||
|
# Local secrets and exported signing keys
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
*.key
|
||||||
|
*.pem
|
||||||
|
*.p8
|
||||||
|
*.p12
|
||||||
|
*.cer
|
||||||
|
*.der
|
||||||
|
*.mobileprovision
|
||||||
|
sparkle_private_key*
|
||||||
|
SparklePrivateKey*
|
||||||
|
private-key*
|
||||||
|
private_key*
|
||||||
|
|||||||
+1
-1
Submodule Extensions/Firefox updated: de6bb273a4...0b56f13cef
@@ -15,10 +15,16 @@ final class SparkleUpdater: NSObject, ObservableObject, SPUUpdaterDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkForUpdates() {
|
func checkForUpdates() {
|
||||||
|
guard controller.updater.canCheckForUpdates else {
|
||||||
|
isChecking = false
|
||||||
|
updateStatus = "Update check is already in progress."
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
isChecking = true
|
isChecking = true
|
||||||
updateStatus = "Checking for updates..."
|
updateStatus = "Checking for updates..."
|
||||||
foundUpdateItem = nil
|
foundUpdateItem = nil
|
||||||
controller.updater.checkForUpdatesInBackground()
|
controller.checkForUpdates(nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
func updater(_ updater: SPUUpdater, didFindValidUpdate item: SUAppcastItem) {
|
func updater(_ updater: SPUUpdater, didFindValidUpdate item: SUAppcastItem) {
|
||||||
@@ -48,6 +54,12 @@ final class SparkleUpdater: NSObject, ObservableObject, SPUUpdaterDelegate {
|
|||||||
self.updateStatus = "Update check failed: \(error.localizedDescription)"
|
self.updateStatus = "Update check failed: \(error.localizedDescription)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func updater(_ updater: SPUUpdater, didFinishUpdateCycleFor updateCheck: SPUUpdateCheck, error: Error?) {
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.isChecking = false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@main
|
@main
|
||||||
|
|||||||
+2
-1
@@ -8,10 +8,11 @@
|
|||||||
<item>
|
<item>
|
||||||
<title>Version 0.5.7</title>
|
<title>Version 0.5.7</title>
|
||||||
<sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
|
<sparkle:minimumSystemVersion>14.0</sparkle:minimumSystemVersion>
|
||||||
|
<sparkle:hardwareRequirements>arm64</sparkle:hardwareRequirements>
|
||||||
<sparkle:releaseNotesLink>https://github.com/nimbold/Firelink/releases/tag/v0.5.7</sparkle:releaseNotesLink>
|
<sparkle:releaseNotesLink>https://github.com/nimbold/Firelink/releases/tag/v0.5.7</sparkle:releaseNotesLink>
|
||||||
<pubDate>Sat, 06 Jun 2026 11:36:06 +0000</pubDate>
|
<pubDate>Sat, 06 Jun 2026 11:36:06 +0000</pubDate>
|
||||||
<enclosure url="https://github.com/nimbold/Firelink/releases/download/v0.5.7/Firelink-0.5.7-mac-arm64.dmg"
|
<enclosure url="https://github.com/nimbold/Firelink/releases/download/v0.5.7/Firelink-0.5.7-mac-arm64.dmg"
|
||||||
sparkle:version="0.5.7"
|
sparkle:version="22"
|
||||||
sparkle:shortVersionString="0.5.7"
|
sparkle:shortVersionString="0.5.7"
|
||||||
length="8871979"
|
length="8871979"
|
||||||
type="application/octet-stream"
|
type="application/octet-stream"
|
||||||
|
|||||||
Reference in New Issue
Block a user