Audit portable Windows DLL dependencies before releasing
This commit is contained in:
1 parent
d20ce064a5
commit
2fb675e64c
4 files changed
+13
-2
No files matched your search
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user