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

Cài, quản lý và đóng góp phần mềm với TXAInstall, manage and publish software with TXA

Tài liệu TXA: từ dòng lệnh cài đầu tiên tới việc gửi gói của chính bạn lên kho.TXA documentation: from the first install command to submitting your own package.

Gõ một từ như upgrade, pin hay source để lọc mọi lệnh trong trang.Type a word like upgrade, pin or source to filter every command on this page.

Bắt đầuGet started

Yêu cầu: Windows 10 (1809) trở lên, x64 hoặc ARM64.Requirements: Windows 10 (1809) or later, x64 or ARM64.

Cách 1: PowerShell, không cần PythonOption 1: PowerShell, no Python needed

Mở PowerShell (không cần quyền admin) và chạy:Open PowerShell (no admin rights needed) and run:

Script tải bản mới nhất, kiểm tra SHA-256, cài vào %LOCALAPPDATA%\TXA và tự thêm vào PATH. Nó hỏi ngôn ngữ trước khi cài; bỏ qua câu hỏi bằng -Lang vi hoặc -Lang en. Mở terminal mới là dùng được.The script downloads the latest release, verifies its SHA-256, installs to %LOCALAPPDATA%\TXA and adds it to PATH. It asks for a language first; skip the question with -Lang vi or -Lang en. Open a new terminal and you are ready.

Cách 2: pipxOption 2: pipx

Nếu đã có Python 3.10 trở lên:If you already have Python 3.10 or newer:

Chưa có pipx thì chạy python -m pip install --user pipx rồi python -m pipx ensurepath, sau đó mở terminal mới.No pipx yet? Run python -m pip install --user pipx, then python -m pipx ensurepath, and open a new terminal.

Kiểm tra:Check:

Dùng txapmUsing txapm

Gói nào có tên ngắn (alias) thì gõ tên ngắn cũng được: txapm install vlc. Một số lệnh có tên viết tắt: add = install, rm = uninstall, ls = list, find = search.Packages with a short name (alias) accept it: txapm install vlc. Some commands have short forms: add = install, rm = uninstall, ls = list, find = search.

Tìm và càiFind and install

  • Tìm phần mềmSearch for software
  • Xem thông tin một góiShow a package
  • Xem các phiên bản có trong kho (kèm CPU, ngôn ngữ)List the versions in the repository (with CPU and language)
  • Cài bản mới nhất (gõ tên ngắn hoặc mã đầy đủ TXAVL.VLC)Install the newest version (short name or full id TXAVL.VLC)
  • Cài một phiên bản cụ thểInstall one specific version
  • Chọn phiên bản từ danh sách trong khoPick the version from the repository list
  • Cài nhưng vẫn xem tiến trình của bộ càiInstall and still show the installer's progress
  • Cài bằng giao diện gốc của bộ càiInstall with the installer's own interface
  • Chỉ tải về, không càiDownload only, do not install
  • Thử một manifest trên máy trước khi gửiTry a manifest on your PC before submitting it

Quản lý phần mềm đã càiManage what is installed

  • Xem gói đã càiList installed packages
  • Xem gói có bản mớiList packages with a newer version
  • Xem mọi phần mềm trên máy, đánh dấu cái nào có trong TXAList all software on the PC and mark what TXA knows
  • Nâng cấp một góiUpgrade one package
  • Nâng cấp tất cảUpgrade everything
  • Gỡ cài đặtUninstall
  • Giữ nguyên phiên bản, upgrade --all sẽ không đụng tớiKeep a version; upgrade --all leaves it alone
  • Xem các gói đang giữ (pin remove để bỏ)List pinned packages (pin remove to release)
  • Sao lưu danh sách góiBack up your package list
  • Cài lại cả bộ trên máy mớiReinstall the whole set on a new PC
  • Tải bộ cài và manifest về một thư mụcSave the installer and manifest into a folder

Công cụ thêmMore tools

  • Tìm trên WinGet ngay trong txapmSearch WinGet from inside txapm
  • Cài trực tiếp một gói từ WinGetInstall a WinGet package directly
  • Kiểm tra sức khoẻ hệ thống, kho nguồn, WinGet và cacheCheck the health of your setup, sources, WinGet and cache
  • Dọn bộ cài tải tạm và file log (thêm --all để dọn hết)Remove temporary installers and logs (--all removes everything)
  • Xem danh sách hoặc nội dung log cài đặt (thêm tên gói)List install logs, or read one (add a package name)
  • Xem vị trí cài, PATH và nguồn của một góiShow install location, PATH and source of a package
  • Thông tin cài đặt, đường dẫn, tài khoảnInstall info, paths, account

npm không có bộ cài riêng, nó đi kèm Node.js: txapm install npm sẽ cài Node.js (có sẵn node, npm, npx). Cần đổi giữa nhiều bản Node.js thì dùng thêm txapm install nvm.npm has no installer of its own, it ships with Node.js: txapm install npm installs Node.js (with node, npm and npx). To switch between Node.js versions, also install nvm.

Khi cài, TXA làm gìWhat an install does

Mỗi lần cài, màn hình báo từng bước [1/5] tới [5/5] kèm thanh tiến trình có tốc độ và thời gian còn lại.Each install reports steps [1/5] to [5/5] with a progress bar showing speed and time left.

ResolveLấy thông tin gói từ kho txa-repo (đã được kiểm định và có người duyệt), chọn bộ cài đúng cho máy (ARM64, rồi x64, rồi x86) và kiểm tra phiên bản Windows tối thiểu.Reads the package from the txa-repo repository (vetted and reviewed), chooses the installer for your PC (ARM64, then x64, then x86) and checks the minimum Windows version.
DownloadTải về %TEMP% xa.Downloads to %TEMP% xa.
VerifySo mã SHA-256. Sai một byte là xoá file và dừng.Compares the SHA-256. One wrong byte and the file is deleted and the install stops.
InstallCài im lặng. Gói cài cho cả máy hiện hộp thoại UAC xin quyền admin. Log nằm ở %LOCALAPPDATA%\TXA\logs.Installs silently. Machine-wide packages show a UAC prompt for admin rights. Logs are in %LOCALAPPDATA%\TXA\logs.
RecordGhi vào danh sách đã cài để upgrade, uninstall, export dùng.Saved to your installed list for upgrade, uninstall and export.

Gói portable (như FFmpeg) không có bộ cài: TXA giải nén vào %LOCALAPPDATA%\TXA\apps\<Id>\<phiên-bản>, thêm thư mục chương trình vào PATH của riêng bạn (không cần quyền admin) rồi nhắc mở terminal mới. upgrade thay bản cũ, uninstall xoá thư mục và gỡ khỏi PATH.Portable packages (like FFmpeg) have no installer: TXA unpacks them to %LOCALAPPDATA%\TXA\apps\<Id>\<version>, adds the program folder to your own PATH (no admin needed) and reminds you to open a new terminal. upgrade replaces the old copy, uninstall removes the folder and the PATH entry.

Phiên bản và ngôn ngữVersions and languages

Mỗi gói giữ 10 phiên bản mới nhất (bản mới nhất trừ đi 9 bản). Thêm một bản mới thì bản cũ nhất bị xoá trong cùng Pull Request hoặc lần tự cập nhật. Bạn cài được bản cũ hơn bất kỳ lúc nào miễn bản đó còn trong kho:Each package keeps the newest 10 versions (the latest minus 9). Adding a new one removes the oldest in the same pull request or automatic update. You can install any older version while it is still in the repository:

Một số gói (ví dụ Cốc Cốc) có bộ cài riêng cho từng ngôn ngữ. txapm tự chọn bản đúng với ngôn ngữ hiển thị của Windows (locale: vi-VN hoặc en-US trên từng target trong manifest); ngôn ngữ khác dùng bản tiếng Anh.Some packages (for example Coc Coc) ship a separate installer per language. txapm picks the one that matches the Windows display language (locale: vi-VN or en-US on each target in the manifest); any other language uses the English build.

Kho nguồn riêngYour own sources

Ngoài kho chính txa, bạn thêm được kho riêng: phần mềm nội bộ công ty, bản build riêng của nhóm. Kho riêng chỉ cần phục vụ cùng REST API txa.v1 (hai file JSON tĩnh), hoặc đơn giản là một thư mục chứa manifests/.Besides the main txa source you can add your own: internal company software, a team's private builds. A source only needs to serve the same txa.v1 REST API (two static JSON files), or simply be a folder containing manifests/.

  • Xem các khoList sources
  • Thêm kho HTTPSAdd an HTTPS source
  • Thêm kho là thư mục (ổ mạng, máy cá nhân)Add a folder as a source (network share, local)
  • Kho riêng tư cần tokenPrivate source that needs a token
  • Cho phép tải bộ cài từ máy chủ LANAllow installers from a LAN server
  • Tắt một kho (enable để bật lại, remove để xoá)Disable a source (enable to turn it on, remove to delete)
  • Chỉ tìm hoặc cài từ một kho (-s)Search or install from one source only (-s)
  • Về mặc định (chỉ kho txa)Back to the default (only the txa source)
  • Kho được hỏi theo thứ tự: txa trước, rồi các kho thêm sau. Cùng một Id ở nhiều kho thì TXA dừng và yêu cầu chọn bằng -s để tránh cài nhầm.Sources are asked in order: txa first, then the ones you added. If the same id exists in several, TXA stops and asks you to choose with -s so nothing is installed by mistake.
  • Gói nhớ nó được cài từ kho nào, nên upgrade luôn lấy bản mới từ đúng kho đó.A package remembers which source it came from, so upgrade always reads the new version from there.
  • Token không bao giờ được ghi vào file cấu hình: TXA chỉ lưu tên biến môi trường và chỉ gửi token tới đúng máy chủ của kho đó. Kho phải dùng HTTPS (trừ http://localhost để thử).Tokens are never written to the config file: TXA stores only the environment variable name and sends the token only to that source's own server. Sources must use HTTPS (except http://localhost for testing).

Tự dựng một khoBuild a source yourself

  1. Tạo thư mục có manifests/<chữ-cái>/<Namespace>/<AppName>/<X.Y.Z>/ (soạn nhanh bằng txacreate new <url> --dry-run --out <thư-mục>).Create a folder with manifests/<letter>/<Namespace>/<AppName>/<X.Y.Z>/ (draft it fast with txacreate new <url> --dry-run --out <folder>).
  2. Dùng ngay dạng thư mục: txapm source add noibo D:\kho-txa, hoặc sinh REST API tĩnh:Use it as a folder at once: txapm source add noibo D:\kho-txa, or generate the static REST API:

Đưa thư mục đó lên máy chủ HTTPS bất kỳ (IIS, nginx, GitHub Pages, S3...) rồi txapm source add congty https://<máy-chủ>/api/txa/v1. Muốn có cả bot kiểm định như kho chính thì fork repo, đổi namespace trong policy.txa.yaml và chạy scripts/setup-github.ps1.Put that folder on any HTTPS server (IIS, nginx, GitHub Pages, S3...) and run txapm source add congty https://<server>/api/txa/v1. For the full vetting bot like the main repository, fork it, change the namespace in policy.txa.yaml and run scripts/setup-github.ps1.

Đóng góp một góiContribute a package

Ai có tài khoản GitHub cũng gửi được, không cần biết viết YAML.Anyone with a GitHub account can submit, no YAML skills needed.

1. Gửi bộ cài1. Send the installer

Đưa link tải .exe hoặc .msi chính thức (bắt buộc HTTPS). Không cần đăng nhập trước:Give the official .exe or .msi download link (HTTPS is required). No sign-in first:

txacreate hỏi từng câu như một trình hướng dẫn, mỗi câu có ví dụ và giá trị gợi ý (Enter để nhận). Link GitHub Releases được tự điền tên, nhà phát hành, giấy phép, mô tả. Sau đó nó tạo bản xem trước 3 file YAML, kiểm tra nhanh rồi hỏi có gửi lên kho không. Có bản cho nhiều CPU thì đưa nhiều link: txacreate new <link-x64> <link-arm64>.txacreate walks you through it with an example and a suggested value for every question (Enter accepts). A GitHub Releases link fills in the name, publisher, license and description. It then builds a 3-file YAML preview, runs a quick check and asks whether to submit. For several CPUs give several links: txacreate new <x64-link> <arm64-link>.

2. Cấp quyền GitHub, chỉ ở bước cuối2. Authorize GitHub, only at the last step

Khi sắp fork kho và mở Pull Request, TXA hiện một mã 8 ký tự và mở trình duyệt tại github.com/login/device. Bạn nhập mã rồi bấm Authorize; lệnh tự fork, tạo branch, commit và mở Pull Request. Quyền được mã hoá và nhớ trên máy.Right before forking the repository and opening the pull request, TXA shows an 8-character code and opens github.com/login/device. Enter the code and press Authorize; the command forks, branches, commits and opens the pull request. The grant is encrypted and remembered on your PC.

3. Gói đã có, giờ có bản mới3. The package exists and has a new version

Mọi thông tin cũ được giữ nguyên, chỉ thay link và phiên bản.All earlier information is kept, only the link and the version change.

Lệnh tiện íchHelper commands

txacreate new <link> --dry-runChỉ tạo file vào ./txa-out để xem trước, không gửi gì.Only writes files to ./txa-out to preview, nothing is sent.
txacreate hash setup.exeXem SHA-256, kiến trúc, loại bộ cài của một file.Show the SHA-256, architecture and installer type of a file.
txacreate validate <thư-mục>Chạy 14 bước kiểm tra cho thư mục gói hoặc cả kho.Run the 14 checks on a package folder or a whole repository.
txacreate submit <thư-mục>Gửi PR cho thư mục gói, thư mục kho gốc hoặc thư mục API.Open a PR for a package folder, a repository root or an API folder.
txacreate token --storeCấp quyền GitHub trước, không đợi tới lúc gửi (--clear để đăng xuất).Authorize GitHub in advance (--clear signs out).

Sau khi gửi Pull RequestAfter you open the pull request

Việc đầu tiên là đọc và chấp nhận Thỏa thuận Người đóng góp. Bot comment ngay và gắn nhãn txa:needs-agreement. Bạn trả lời đúng một comment, khi đó bot xoá comment, đổi nhãn sang txa:needs-confirmation (chờ bạn tick checklist) và vẫn chưa chạy gì:The first thing is to read and accept the Contributor Agreement. The bot comments at once and adds the txa:needs-agreement label. You reply with exactly one comment; the bot deletes it, switches the label to txa:needs-confirmation (waiting for you to tick the checklist) and still runs nothing:

Đọc Thỏa thuận Người đóng gópRead the Contributor Agreement

Chỉ khi bạn vừa đồng ý vừa tick hết các ô trong mô tả PR, bot mới chạy 14 bước kiểm tra, bảng tiến trình và 16 check, và nhãn chuyển sang txa:validating. Chỉ comment của chính người mở PR mới có hiệu lực; thay mặt công ty thì ghi @txa-repo agree company=&quot;Tên công ty&quot;. Giống winget-pkgs: đồng ý một lần, bot nhớ. Từ PR sau, nếu bạn đã có PR được gộp ở kho này hoặc ở kho tin cậy (mặc định TXAVL/txa-repo) và thỏa thuận chưa đổi phiên bản, bạn không phải comment lại, nhưng vẫn phải tick checklist trước khi bot chạy. Nhãn đi theo vòng đời của PR:Only when you have agreed and ticked every box in the PR description does the bot run the 14 checks, the progress table and the 16 checks, and the label becomes txa:validating. Only a comment from the PR author counts; on behalf of a company write @txa-repo agree company=&quot;Company name&quot;. Like winget-pkgs: agree once, the bot remembers. From your next PR, if you already have a merged PR in this repository or in a trusted one (by default TXAVL/txa-repo) and the agreement has not changed version, you do not comment again, but you still tick the checklist before the bot runs. Labels follow the life of the PR:

txa:needs-agreementBạn chưa chấp nhận Contributor Agreement: comment @txa-repo agreeYou have not accepted the Contributor Agreement: comment @txa-repo agree
txa:needs-confirmationChecklist trong mô tả PR chưa tick đủThe checklist in the PR description is not fully ticked
txa:validatingBot đang chạy các bước kiểm traThe bot is running the checks
txa:verified-buildQua hết kiểm tra tự độngPassed every automatic check
txa:awaiting-reviewChờ moderator duyệtWaiting for a moderator
txa:approvedModerator đã duyệt, sẽ tự gộpApproved, will merge by itself
txa:publishedĐã gộp: gói đã nằm trong khoMerged: the package is in the repository
txa:fix-requiredCó lỗi: đọc comment của bot, sửa rồi push lạiSomething failed: read the bot's comment, fix and push again

Gói đang chờ duyệt vẫn hiện trong kho (pending.json) nhưng chưa cài được; khi moderator duyệt và PR được gộp, khoảng hai phút sau mọi người cài được gói đó.A package waiting for review still shows in the index (pending.json) but cannot be installed yet; once a moderator approves and the PR merges, everyone can install it about two minutes later.

Cấu trúc manifestManifest format

Mỗi phiên bản nằm trong manifests/t/TXAVL/<AppName>/<X.Y.Z>/ và gồm ba loại file, đều có JSON Schema để trình soạn thảo gợi ý:Each version lives in manifests/t/TXAVL/<AppName>/<X.Y.Z>/ and has three kinds of file, all with a JSON Schema so editors can help:

core.txa.yamlMã gói, phiên bản, kênh, tên ngắn (alias), ngôn ngữ mặc định, tag.Package id, version, channel, short name (alias), default language, tags.
build.txa.yamlBộ cài từng CPU: url HTTPS, sha256, dung lượng, loại bộ cài (engine), tham số cài im lặng, phiên bản Windows tối thiểu, phạm vi cài.The installer per CPU: HTTPS url, sha256, size, installer type (engine), silent switches, minimum Windows version, install scope.
about.<lang>.txa.yamlTên, nhà phát hành, tóm tắt, trang chủ, giấy phép. Mỗi ngôn ngữ một file (vi-VN, en-US).Name, publisher, summary, homepage, license. One file per language (vi-VN, en-US).

Đặc tả đầy đủ từng trường và mẫu có chú thích:The full specification of every field, and annotated examples: docs/manifest-schema.md · examples

API công khaiPublic API

Trang này và txapm đều đọc cùng một REST API tĩnh, namespace txa.v1, đặt trên GitHub Pages:This site and txapm read the same static REST API, namespace txa.v1, hosted on GitHub Pages:

/api/txa/v1/index.jsonMọi gói: mã, alias, phiên bản mới nhất, danh sách phiên bản, tên, nhà phát hành, tóm tắt hai ngôn ngữ, tag, CPU.Every package: id, alias, latest version, version list, name, publisher, summaries in both languages, tags, CPUs.
/api/txa/v1/packages/<Id>.jsonMọi phiên bản của một gói cùng cả ba thẻ manifest.Every version of one package with all three manifest cards.
/api/txa/v1/pending.jsonCác bản đã gửi, đang chờ duyệt.Releases that were submitted and are waiting for review.

index.json · pending.json

Hỏi đáp và gỡ cài đặtFAQ and uninstall

Gõ txapm báo “not recognized”?txapm says “not recognized”?

Mở cửa sổ terminal mới để PATH được nạp lại.Open a new terminal window so PATH is reloaded.

Cài báo “SHA-256 mismatch”?Install fails with “SHA-256 mismatch”?

File trên máy chủ nhà phát hành đã thay đổi so với lúc duyệt. TXA đã xoá file đó để bảo vệ bạn. Hãy báo ở Issues trên GitHub.The file on the publisher's server changed since it was reviewed. TXA deleted it to protect you. Please report it in GitHub Issues.

Mã thoát 1618 và 3010?Exit codes 1618 and 3010?

1618: Windows đang cài phần mềm khác, đợi xong rồi chạy lại. 3010: cài thành công, chỉ cần khởi động lại máy.1618: Windows is installing something else, wait and run again. 3010: installed fine, just restart the PC.

Gỡ TXA khỏi máyRemove TXA from your PC

Cài bằng pipx thì gỡ bằng pipx uninstall txa.Installed with pipx? Remove it with pipx uninstall txa.