update
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user