Changes Initial commit

This commit is contained in:
2026-04-23 14:40:29 +08:00
parent b6c9ce5017
commit fc2817b604
23 changed files with 1512 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
from __future__ import annotations
import json
from pathlib import Path
from .models import UpdateManifest
class ManifestStore:
def __init__(self, manifest_dir: str) -> None:
self.path = Path(manifest_dir)
self.path.mkdir(parents=True, exist_ok=True)
def save(self, manifest: UpdateManifest) -> Path:
target = self.path / f"{manifest.release_version}.json"
target.write_text(json.dumps(manifest.model_dump(), ensure_ascii=False, indent=2), encoding="utf-8")
return target