fix download path

This commit is contained in:
2026-06-04 14:44:56 -06:00
parent 090b39f78b
commit 337d7684e4
14 changed files with 187 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
import os
import pathlib
import shutil
import sys
src = pathlib.Path(sys.argv[1])
dest = pathlib.Path(os.environ['MESON_INSTALL_DESTDIR_PREFIX']) / sys.argv[2]
if not (src / 'index.html').exists():
sys.exit(0)
if dest.exists():
shutil.rmtree(dest)
shutil.copytree(src, dest)