update
This commit is contained in:
36
AzA march 2026/_release_post_backup_1_3_13.py
Normal file
36
AzA march 2026/_release_post_backup_1_3_13.py
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Post-Release-Backup 1.3.13 (lokal)."""
|
||||
from __future__ import annotations
|
||||
|
||||
import shutil
|
||||
import subprocess
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
TS = datetime.now().strftime("%Y%m%d_%H%M%S")
|
||||
BACKUP = ROOT / f"backup_post_release_1_3_13_{TS}"
|
||||
BACKUP.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
ITEMS = [
|
||||
"aza_version.py",
|
||||
"version.json",
|
||||
"release/version.json",
|
||||
"_build_info.py",
|
||||
"dist/installer/aza_desktop_setup.exe",
|
||||
"dist/signing_reports",
|
||||
]
|
||||
for rel in ITEMS:
|
||||
src = ROOT / rel
|
||||
if src.is_file():
|
||||
dst = BACKUP / rel
|
||||
dst.parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy2(src, dst)
|
||||
elif src.is_dir():
|
||||
shutil.copytree(src, BACKUP / rel, dirs_exist_ok=True)
|
||||
|
||||
(BACKUP / "README_RESTORE.txt").write_text(
|
||||
f"Post-Release-Backup AzA 1.3.13\nErstellt: {TS}\nEnthält Installer, Manifest, Signing-Reports.\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
print(f"POST_BACKUP_DIR={BACKUP}")
|
||||
Reference in New Issue
Block a user