fix(go): add xray.schema.cn.json generation to Makefile and update .gitignore

- Added xray.schema.cn.json to the build process in the Makefile.
- Updated .gitignore to include xray.schema.cn.json for better file management.
This commit is contained in:
kastov 2025-08-14 17:48:17 +03:00
parent 1b9a6ff7b7
commit dd502fa1b5
No known key found for this signature in database
GPG key ID: 1B27BE29057F4C90
2 changed files with 14 additions and 4 deletions

4
.gitignore vendored
View file

@ -2,7 +2,7 @@
*.js
assets
*.schema.json
*.schema.cn.json
# Logs
logs
@ -28,3 +28,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

View file

@ -1,6 +1,6 @@
build: main.wasm wasm_exec.js xray.schema.json
build: main.wasm wasm_exec.js xray.schema.json xray.schema.cn.json
mkdir -p ../public
mv main.wasm wasm_exec.js xray.schema.json ../public/
mv main.wasm wasm_exec.js xray.schema.json xray.schema.cn.json ../public/
.PHONY: build
dev-lite:
@ -44,4 +44,12 @@ xray.schema.json: assets/Xray-docs-next-main
| cut -d: -f2- \
| PYTHONUNBUFFERED=1 \
python3 scrape-docs.py "Основные модули конфигурации" \
> xray.schema.json
> xray.schema.json
xray.schema.cn.json:
grep -rI '' assets/Xray-docs-next-main/docs/config/ \
| cut -d: -f2- \
| PYTHONUNBUFFERED=1 \
python3 scrape-docs.py "基础配置模块" \
> xray.schema.cn.json