This commit is contained in:
zyp
2026-11-27 21:27:14 +08:00
parent b18c6efe92
commit 5f204764c9
12 changed files with 563 additions and 28 deletions
+2 -2
View File
@@ -60,9 +60,9 @@ def build_package(root: Path, output: Path, version: str) -> Path:
# Exclusive creation prevents accidentally replacing an existing release.
with target.open("xb") as handle:
with tarfile.open(fileobj=handle, mode="w:gz") as archive:
for name in ("compose.yml", "deploy.sh", "README.txt"):
for name in ("compose.yml", "deploy.sh", "reset-runtime.sh", "personnel_runtime.py", "README.txt"):
data = (deployment / name).read_bytes().replace(b"\r\n", b"\n")
add_bytes(archive, name, data, 0o755 if name == "deploy.sh" else 0o644)
add_bytes(archive, name, data, 0o755 if name.endswith(".sh") else 0o644)
add_bytes(archive, "VERSION", (version + "\n").encode("ascii"))
add_bytes(archive, "assistant.env.initial", config, 0o600)
add_bytes(archive, "image-source.tar.gz", source.getvalue())