include maplibre-gl files in build

This commit is contained in:
j 2025-08-05 19:09:07 +02:00
commit 25cd3f6bb1

View file

@ -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)