feat(updates): 使用 Sparkle 从发布 ZIP 下载并重启更新

This commit is contained in:
2026-11-16 16:17:31 +08:00
parent 451d31682d
commit ec37b8e3f9
23 changed files with 716 additions and 219 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ import uuid
ROOT = Path(__file__).resolve().parents[1]
CORE = sorted(str(p.relative_to(ROOT)) for folder in ("Models", "Monitors", "Services", "Extensions")
for p in (ROOT / "kymo/Core" / folder).glob("*.swift"))
for p in (ROOT / "kymo/Core" / folder).glob("*.swift") if p.name != "SparkleUpdater.swift")
CHECKS = {name: list(CORE) for name in (
"SamplingChecks", "SamplingIntervalChecks", "UnifiedPanelChecks", "MemoryChecks",
"GPUStatisticsChecks", "StageCChecks", "BatteryPowerChecks", "MachPortChecks", "ReleaseServiceChecks", "DetailDemandChecks")}
@@ -237,7 +237,7 @@ def main():
finally:
clean_test_container(bundle)
else:
extra = [app] if name in {"LocalizationChecks", "PanelAssetChecks", "MemoryHeaderChecks"} else []
extra = [app] if name in {"ReleaseUpdateChecks", "LocalizationChecks", "PanelAssetChecks", "MemoryHeaderChecks"} else []
if name == "CodeIdentityChecks":
extra = [app, app / "Contents/XPCServices/SMARTService.xpc"]
run([executable, *extra], timeout=45)