feat: unify source and skills for Dever 0.1.2 installation

This commit is contained in:
Antigravity committed 2026-10-05 02:49:17 +00:00
1 parent a2e0436ed4
commit 19f122b4b4
47 files changed
+1951 -63

No files matched your search

+5 -5
View File
@@ -202,14 +202,14 @@ def install_assets(assets, image, manifest):
stem = f"dever-{manifest['platform']}"
base = installer.RELEASES
routes = {
f"{base}/latest/download/{stem}.manifest.json": assets / f"{stem}.manifest.json",
f"{base}/latest/download/{stem}.manifest.sig": assets / f"{stem}.manifest.sig",
f"{base}/download/v{manifest['version']}/{stem}.tar.zst": assets / f"{stem}.tar.zst",
f"{base}/latest/{stem}.manifest.json": assets / f"{stem}.manifest.json",
f"{base}/latest/{stem}.manifest.sig": assets / f"{stem}.manifest.sig",
f"{base}/{manifest['version']}/{stem}.tar.zst": assets / f"{stem}.tar.zst",
}
for artifact in manifest["artifacts"]:
if artifact["path"] == "bootstrap/dever" or artifact["path"].startswith("bootstrap/lib/"):
name = f"{stem}.blob-{artifact['sha256']}"
routes[f"{base}/download/v{manifest['version']}/{name}"] = assets / name
routes[f"{base}/{manifest['version']}/{name}"] = assets / name
installer.download = lambda address: routes[address].open("rb")
installer.install(argparse.Namespace(
version="latest", release=None, system_root=image, no_start=True,
@@ -225,7 +225,7 @@ def accept(release, assets, image, report, init, extension_helper=None):
"version": manifest["version"], "platform": manifest["platform"],
"manifest_sha256": hashlib.sha256((release / "manifest.json").read_bytes()).hexdigest(),
"checks": [], "global_service_actions": "not_run", "online_update": "not_run",
"installation_transport": "local_github_assets" if assets else "local_signed_directory",
"installation_transport": "local_official_assets" if assets else "local_signed_directory",
}
def passed(name):