Audit portable Windows DLL dependencies before releasing
Gitea CI / Windows x64 and Android (pull_request) Canceled after 0s
Gitea CI / Gitea CI passed (pull_request) Canceled after 0s

This commit is contained in:
lingjhf committed 2026-10-06 03:11:15 +08:00
1 parent d20ce064a5
commit 2fb675e64c
4 files changed
+13 -2

No files matched your search

+3 -2
View File
@@ -48,9 +48,10 @@ def pe_imports(path):
for item in getattr(pe, attribute, [])})
def audit(root, read_imports=pe_imports):
def audit(root, read_imports=pe_imports, *, require_processing=True):
root = Path(root).resolve()
missing = [name for name in REQUIRED if not (root / name).is_file()]
required = REQUIRED if require_processing else tuple(name for name in REQUIRED if not name.startswith('processing/'))
missing = [name for name in required if not (root / name).is_file()]
if missing:
raise ValueError(f'Missing release files: {missing}')
if not (root / 'data/flutter_assets').is_dir():