diff --git a/README.md b/README.md index 5819c56..5a2c0c7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A [Reticulum MeshChat](https://github.com/liamcottle/reticulum-meshchat) fork from the future. - + This project is seperate from the original Reticulum MeshChat project, and is not affiliated with the original project. diff --git a/scripts/prepare_frontend_dir.py b/scripts/prepare_frontend_dir.py index 2ee9a5a..0fb1cb6 100644 --- a/scripts/prepare_frontend_dir.py +++ b/scripts/prepare_frontend_dir.py @@ -14,3 +14,15 @@ if TARGET.exists(): shutil.rmtree(TARGET) TARGET.mkdir(parents=True, exist_ok=True) + +# Copy built assets from root public/ to meshchatx/public/ +SOURCE = Path("public") +if SOURCE.exists(): + print(f"Copying assets from {SOURCE} to {TARGET}...") + for item in SOURCE.iterdir(): + if item.is_dir(): + shutil.copytree(item, TARGET / item.name, dirs_exist_ok=True) + else: + shutil.copy2(item, TARGET / item.name) +else: + print(f"Warning: Source directory {SOURCE} not found!")