refactor: refactor toolset (not finished)

This commit is contained in:
2025-07-23 22:35:47 +08:00
parent 685a0b8066
commit 9f591113f8
10 changed files with 658 additions and 54 deletions

View File

@ -1,8 +1,27 @@
# Tools
These tool scripts located in this directory require following dependencies (version list in content is not mandatory. I just tell you that this version definitely works. You can upgrade or downgrade it as you wish if script still works.):
These tool scripts is served for BBP_NG specifically. We use Astral UV with a single Python project file to manage these tools. You can browse their usage in this file.
```
pillow=10.2.0
termcolor=2.2.0
```
## Build Icons
Build essential icons used by BBP_NG in Blender.
Execute `uv run build_icons.py`
## Build JSONs
Compress BME prototype JSON files into smaller size.
Execute `uv run build_json.py`
## Validate BME Prototype
Validate the correction of BME prorotype JSON files.
Execute `uv run validate_json.py`
## Extract BME Translation
Extract the translation template from BME prorotype JSON files.
Execute `uv run extract_json.py`