Tachiyomi-Extensions/.github/scripts/move-built-apks.py

13 lines
348 B
Python
Raw Normal View History

2024-02-04 02:07:54 +00:00
from pathlib import Path
import shutil
REPO_APK_DIR = Path("repo/apk")
shutil.rmtree(REPO_APK_DIR, ignore_errors=True)
2024-02-04 02:07:54 +00:00
REPO_APK_DIR.mkdir(parents=True, exist_ok=True)
for apk in Path.home().joinpath("apk-artifacts").glob("**/*.apk"):
2024-02-04 02:07:54 +00:00
apk_name = apk.name.replace("-release.apk", ".apk")
shutil.move(apk, REPO_APK_DIR.joinpath(apk_name))