From 25cd3f6bb1bb23400b151d5ce02c20329a343238 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 5 Aug 2025 19:09:07 +0200 Subject: [PATCH] include maplibre-gl files in build --- tools/build/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build/build.py b/tools/build/build.py index ec3cc568..0d6e0f3b 100755 --- a/tools/build/build.py +++ b/tools/build/build.py @@ -92,13 +92,15 @@ def build_oxjs(downloads=False, geo=False): # copy & link ui_files = {'dev': [], 'min': []} + css_files = ['maplibre-gl.css'] for path, dirnames, filenames in os.walk(source_path): for filename in filenames: if '_' not in path and filename[0] not in '._' \ and not filename.endswith('~') \ - and not filename.endswith('.css') \ and '/UI/svg' not in path \ and (geo or '/Geo/' not in path): + if filename.endswith('.css') and filename not in css_files: + continue # write copies in min path source = os.path.join(path, filename) is_jquery = re.search(r'^jquery-[\d\.]+\.js$', filename)