Dành cho người phát triển và quản trị khoFor developers and repository maintainers
Trang này đọc trực tiếp từ thư mục docs của kho nên luôn khớp với bản trên GitHub.This page is read straight from the repository's docs folder, so it always matches what is on GitHub. Sửa trên GitHubEdit on GitHub
English: maintainers.en.md
Cấu trúc repo
manifests/t/TXAVL/<AppName>/<X.Y.Z>/— mỗi phiên bản gồmcore.txa.yaml,build.txa.yaml,about.<lang>.txa.yaml. Đặc tả từng trường: manifest-schema.md; mẫu có chú thích: examples.tools/— mã nguồn Python củatxapm,txacreate,txacli,txaci(cd tools && python -m pip install -e .).web/— trang chỉ mục (Astro), dựng từapi/txa/v1/index.json.scripts/—setup-github.ps1(nhãn, CODEOWNERS, branch protection),winget-import.ps1.policy.txa.yaml— giới hạn dung lượng, namespace, vùng kiểm tra CDN.- API công khai:
https://txavl.github.io/txa-repo/api/txa/v1/index.json.
Workflow trong .github/workflows/
| Workflow | Việc |
|---|---|
txa-validate, txa-gate, txa-agreement, txa-progress, txa-lifecycle, txa-review-signal | bot kiểm định Pull Request: Contributor Agreement, 14 bước kiểm tra, phân loại (bước 15), gộp (bước 16), nhãn txa:* |
txa-auto-update | tự cập nhật phiên bản mới của các gói từ nhà phát hành (WinGet, antigravity.google và bản phát hành GitHub của T-Drop, TXAWinSetup; gói viết tay hoặc ghi auto-update: false thì bỏ qua) |
txa-publish-api | txaci build-api, dựng trang chỉ mục, lấy icon rồi đẩy lên GitHub Pages; chạy khi manifest đổi, mỗi 6 giờ và khi PR duyệt đổi |
txa-release | dựng txa-windows-x64.zip / arm64.zip, SHA256SUMS.txt, install.ps1 khi đẩy tag vX.Y.Z |
txa-pypi | upload gói txa lên PyPI khi đẩy tag vX.Y.Z (tag phải khớp txa.__version__; cần secret PYPI_API_TOKEN) |
txa-tools-ci | kiểm tra nhanh tools/: gói cài được, các lệnh khởi động được, mọi manifest trong repo vẫn qua kiểm tra offline |
Gói không có bộ cài dùng được trên WinGet nhưng có bản phát hành GitHub thì thêm chủ/repo vào GITHUB_REPOS trong
tools/src/txa/create/github_sync.py (kèm mẫu thẻ tag hợp lệ); bot theo dõi bản phát hành mới nhất của repo đó. Hiện có: Codex, FFmpeg, Oh My Posh,
ViGEmBus, MSYS2. Repo của TXAVL được theo dõi mặc định. Dự án bên thứ ba phải được liệt kê tay, không tự tin cậy mọi link GitHub.
Mỗi gói giữ 10 phiên bản mới nhất: thêm bản mới thì bản cũ nhất bị xoá trong cùng PR (hoặc lần tự cập nhật).
Phát hành phiên bản txa mới
- Sửa
__version__trongtools/src/txa/__init__.pyvà đưa lênmain. - Đẩy tag cùng số phiên bản:
git tag vX.Y.Zrồigit push origin vX.Y.Z. txa-releaseđăng bản phát hành GitHub (dành cho cài bằnginstall.ps1) vàtxa-pypiđăng lên PyPI (dành chopipx).
Quản trị
- Bot hiện tên riêng (
txa-repo[bot]) thay vìgithub-actions: github-app.md. - Điều khoản người đóng góp: contributor-agreement.md.
- Nhập hàng loạt từ WinGet: winget-import.md.
- Dựng kho riêng cho tổ chức: custom-source.md.
Tiếng Việt: maintainers.md
Repository layout
manifests/t/TXAVL/<AppName>/<X.Y.Z>/— each version holdscore.txa.yaml,build.txa.yaml,about.<lang>.txa.yaml. Field reference: manifest-schema.en.md; annotated sample: examples.tools/— Python source oftxapm,txacreate,txacli,txaci(cd tools && python -m pip install -e .).web/— the index page (Astro), built fromapi/txa/v1/index.json.scripts/—setup-github.ps1(labels, CODEOWNERS, branch protection),winget-import.ps1.policy.txa.yaml— size limits, namespaces, CDN check regions.- Public API:
https://txavl.github.io/txa-repo/api/txa/v1/index.json.
Workflows in .github/workflows/
| Workflow | Job |
|---|---|
txa-validate, txa-gate, txa-agreement, txa-progress, txa-lifecycle, txa-review-signal | the pull-request bot: Contributor Agreement, 14 checks, triage (step 15), merge (step 16), txa:* labels |
txa-auto-update | picks up new upstream versions automatically (WinGet, antigravity.google and the GitHub releases of T-Drop and TXAWinSetup; hand-written packages or ones marked auto-update: false are skipped) |
txa-publish-api | txaci build-api, builds the index page, fetches icons and deploys to GitHub Pages; runs when manifests change, every 6 hours and when review PRs change |
txa-release | builds txa-windows-x64.zip / arm64.zip, SHA256SUMS.txt and install.ps1 when a vX.Y.Z tag is pushed |
txa-pypi | uploads the txa package to PyPI when a vX.Y.Z tag is pushed (the tag must equal txa.__version__; needs the PYPI_API_TOKEN secret) |
txa-tools-ci | smoke checks for tools/: the package installs, the commands start, every manifest in the repo still passes the offline checks |
A package with no usable WinGet installer but with GitHub releases is followed by adding owner/repo to GITHUB_REPOS in
tools/src/txa/create/github_sync.py (with the pattern a release tag must match); the bot reads that repository's newest release.
Currently: Codex, FFmpeg, Oh My Posh, ViGEmBus, MSYS2. Repositories of TXAVL are followed by default. A third-party project
must be listed by hand; the bot never trusts every GitHub link.
Each package keeps its 10 newest versions: adding a new one removes the oldest in the same PR (or auto-update run).
Releasing a new txa version
- Change
__version__intools/src/txa/__init__.pyand land it onmain. - Push a tag with the same number:
git tag vX.Y.Zthengit push origin vX.Y.Z. txa-releasepublishes the GitHub release (used byinstall.ps1) andtxa-pypipublishes to PyPI (used bypipx).
Administration
- A bot with its own name (
txa-repo[bot]) instead ofgithub-actions: github-app.en.md. - Contributor terms: contributor-agreement.en.md.
- Bulk import from WinGet: winget-import.en.md.
- A private repository for an organization: custom-source.en.md.