From 56d5f360edc5a2ae7216f806dc28d70ae162215b Mon Sep 17 00:00:00 2001 From: linsui <2873532-linsui@users.noreply.gitlab.com> Date: Wed, 20 Nov 2024 19:05:12 +0800 Subject: [PATCH] scanner: disallow wasm file --- fdroidserver/scanner.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fdroidserver/scanner.py b/fdroidserver/scanner.py index 08c09918..ebcc00b5 100644 --- a/fdroidserver/scanner.py +++ b/fdroidserver/scanner.py @@ -994,6 +994,13 @@ def scan_source(build_dir, build=metadata.Build(), json_per_build=None): count += handleproblem( _('Java JAR file'), path_in_build_dir, filepath, json_per_build ) + elif curfile.endswith('.wasm'): + count += handleproblem( + _('WebAssembly binary file'), + path_in_build_dir, + filepath, + json_per_build, + ) elif curfile.endswith('.java'): if not os.path.isfile(filepath):