Update updater.py

This commit is contained in:
m5rcel { Marcel }
2025-10-09 20:26:11 +02:00
committed by GitHub
parent aff3745589
commit 93ca07dc52

View File

@@ -31,7 +31,7 @@ def check_and_update():
with tempfile.TemporaryDirectory() as tmpdir: with tempfile.TemporaryDirectory() as tmpdir:
download_and_extract(REPO_ZIP_URL, tmpdir) download_and_extract(REPO_ZIP_URL, tmpdir)
# Find the extracted subfolder (GitHub zips always contain one top-level folder) # Find the extracted subfolder (GitHub zips always contain one top-level folder)
zipped_root = Path(tmpdir) / "m5rcode-main" zipped_root = Path(tmpdir) / "m5rcode-ubuntu-main"
if not zipped_root.exists(): if not zipped_root.exists():
zipped_root = next(Path(tmpdir).iterdir()) zipped_root = next(Path(tmpdir).iterdir())
# 3. Copy updated files over (here simply overwrite existing files) # 3. Copy updated files over (here simply overwrite existing files)