Skip to content

Commit

Permalink
Save debug output with updating (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbatch authored Jun 19, 2024
1 parent 23ba107 commit b33ea27
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion clashroyalebuildabot/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from loguru import logger
import requests

from clashroyalebuildabot.constants import DEBUG_DIR


class Updater:
GITHUB_REPO = "Pbatch/ClashRoyaleBuildABot"
Expand Down Expand Up @@ -55,7 +57,14 @@ def _replace_old_version(self, commit_sha):
)
for item in os.listdir(self.EXTRACT_PATH):
item_path = os.path.join(self.EXTRACT_PATH, item)
if item in {new_folder_name, "bot.log", ".git"}:
if item in {
new_folder_name,
DEBUG_DIR,
os.path.join(DEBUG_DIR, "bot.log"),
os.path.join(DEBUG_DIR, "screenshots"),
os.path.join(DEBUG_DIR, "labels"),
".git",
}:
continue

if os.path.isdir(item_path):
Expand Down

0 comments on commit b33ea27

Please sign in to comment.