feat(updates): 使用 Sparkle 从发布 ZIP 下载并重启更新
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user