Исправление патчей, реализация базвого функционала для сборки apk

This commit is contained in:
2025-09-08 13:07:46 +03:00
parent 0f53c836ae
commit 8a74245c9c
10 changed files with 185 additions and 41 deletions
+4 -2
View File
@@ -12,9 +12,11 @@ def apply(config: dict) -> bool:
if os.path.isfile(item_path):
os.remove(item_path)
tqdm.write(f'Удалён файл: {item_path}')
if config.get("verbose", False):
tqdm.write(f'Удалён файл: {item_path}')
elif os.path.isdir(item_path):
if item not in config["cleanup"]["keep_dirs"]:
shutil.rmtree(item_path)
tqdm.write(f'Удалена папка: {item_path}')
if config.get("verbose", False):
tqdm.write(f'Удалена папка: {item_path}')
return True