diff --git a/build_manifest.py b/build_manifest.py index 01a1c4e..3b66ad2 100644 --- a/build_manifest.py +++ b/build_manifest.py @@ -17,6 +17,10 @@ IGNORED_TOP_LEVEL_DIRS = { "Screenshots", "WTF", } +IGNORED_DIRS_ANYWHERE = { + ".git", + ".moonwell_launcher", +} ENV_VAR_NAME = "WOW_HOME" @@ -36,7 +40,9 @@ def sha256_file(path: Path, chunk_size: int = 1024 * 1024) -> str: def is_ignored(rel_path: Path) -> bool: if not rel_path.parts: return False - return rel_path.parts[0] in IGNORED_TOP_LEVEL_DIRS + if rel_path.parts[0] in IGNORED_TOP_LEVEL_DIRS: + return True + return any(part in IGNORED_DIRS_ANYWHERE for part in rel_path.parts[:-1]) def load_dotenv(env_path: Path) -> dict[str, str]: