TXA. Kho gói phần mềmPackage index

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ồm core.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ủa txapm, 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/

WorkflowViệc
txa-validate, txa-gate, txa-agreement, txa-progress, txa-lifecycle, txa-review-signalbot 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-updatetự 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-apitxaci 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-releasedựng txa-windows-x64.zip / arm64.zip, SHA256SUMS.txt, install.ps1 khi đẩy tag vX.Y.Z
txa-pypiupload 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-cikiể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

  1. Sửa __version__ trong tools/src/txa/__init__.py và đưa lên main.
  2. Đẩy tag cùng số phiên bản: git tag vX.Y.Z rồi git push origin vX.Y.Z.
  3. txa-release đăng bản phát hành GitHub (dành cho cài bằng install.ps1) và txa-pypi đăng lên PyPI (dành cho pipx).

Quản trị

Tiếng Việt: maintainers.md

Repository layout

  • manifests/t/TXAVL/<AppName>/<X.Y.Z>/ — each version holds core.txa.yaml, build.txa.yaml, about.<lang>.txa.yaml. Field reference: manifest-schema.en.md; annotated sample: examples.
  • tools/ — Python source of txapm, txacreate, txacli, txaci (cd tools && python -m pip install -e .).
  • web/ — the index page (Astro), built from api/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/

WorkflowJob
txa-validate, txa-gate, txa-agreement, txa-progress, txa-lifecycle, txa-review-signalthe pull-request bot: Contributor Agreement, 14 checks, triage (step 15), merge (step 16), txa:* labels
txa-auto-updatepicks 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-apitxaci 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-releasebuilds txa-windows-x64.zip / arm64.zip, SHA256SUMS.txt and install.ps1 when a vX.Y.Z tag is pushed
txa-pypiuploads 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-cismoke 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

  1. Change __version__ in tools/src/txa/__init__.py and land it on main.
  2. Push a tag with the same number: git tag vX.Y.Z then git push origin vX.Y.Z.
  3. txa-release publishes the GitHub release (used by install.ps1) and txa-pypi publishes to PyPI (used by pipx).

Administration