engine/README.md
English | 简体中文
This project uses the meta_json.py script to automatically build, merge, and upload component meta configurations. The following are the instructions for use:
meta.py in each component directory to generate/update the local meta.json.meta.json files into a single master configuration.pip install requests python-dotenv
.env file in the project root directory and configure the following environment variables:COMPONENTS_META_UPLOAD_URL=your_meta_upload_api_url
REMOTE_META_URL=your_remote_meta_fetch_api_url
engine directory:cd engine
python meta_json.py
Execute component meta.py
The script automatically traverses the components directory, skips astronverse-database, and executes meta.py in each component's subdirectory to generate/update the corresponding meta.json.
Merge local meta.json files
It aggregates all component meta.json files and creates a temporary file temp_local.json.
Fetch remote meta configuration
It retrieves the meta configuration from the server via an API call and saves it as temp_remote.json.
Merge local and remote meta
It merges new or updated configurations from the local files into the remote meta list, generating temp_update.json.
Upload the updated meta
Based on user input, it decides whether to upload the merged meta configuration to the server.
.env file are correct and accessible. You can refer to .env.example.If you have any questions, please contact the project maintainer.