Đặc tả Cấu trúc Manifest TXA (TXA Manifest Specification)TXA Manifest Specification
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
Tài liệu hướng dẫn quy chuẩn kỹ thuật và các quy định cho từng trường trong bộ 3 thẻ manifest của gói phần mềm TXA (TXA v1).
Tổng quan (Overview)
Mỗi bản phát hành phần mềm trong kho TXA được định nghĩa bằng một thư mục gồm 3 loại thẻ manifest YAML:
manifests/
└── <ký_tự_đầu>/
└── <Namespace>/
└── <AppName>/
└── <Phiên_bản_X.Y.Z>/
├── core.txa.yaml # Thẻ định danh và metadata cốt lõi
├── build.txa.yaml # Thẻ bộ cài, kiến trúc CPU và tham số
├── about.en-US.txa.yaml # Thẻ mô tả (Tiếng Anh)
└── about.vi-VN.txa.yaml # Thẻ mô tả (Tiếng Việt - tuỳ chọn)
1. Thẻ cốt lõi: core.txa.yaml
Định nghĩa thông tin định danh duy nhất của gói trong toàn bộ hệ thống.
# yaml-language-server: $schema=https://raw.githubusercontent.com/TXAVL/txa-repo/main/tools/src/txa/schemas/core.schema.json
txa: 1
kind: core
package:
id: TXAVL.Everything
version: 1.4.1
channel: stable
alias: evt
aliases:
- everything
locale:
default: en-US
tags:
- search
- file-search
- filesystem
Các trường quy định:
| Trường | Bắt buộc | Kiểu | Mô tả & Giới hạn |
|---|---|---|---|
txa | Có | int | Phiên bản đặc tả schema TXA (hiện tại là 1). |
kind | Có | string | Phải là core. |
package.id | Có | string | Định danh gói: dạng <Namespace>.<AppName> (PascalCase). Ví dụ: TXAVL.Everything. |
package.version | Có | string | Phiên bản phần mềm: chuẩn SemVer nghiêm ngặt X.Y.Z (ví dụ 1.4.1). |
package.channel | Không | string | Nhánh phát hành: stable (mặc định) hoặc beta. |
package.alias | Không | string | Tên lệnh tắt ngắn gọn để người dùng gõ txapm install <alias> (chữ thường, chữ số, dấu gạch ngang, 2-32 ký tự). |
locale.default | Có | string | Mã ngôn ngữ chính của gói (mặc định: en-US hoặc vi-VN). |
tags | Không | array | Danh sách từ khóa tìm kiếm (tối đa 16 tag, viết thường, không chứa ký tự đặc biệt). |
2. Thẻ bộ cài & nền tảng: build.txa.yaml
Quy định cấu hình thực thi bộ cài đặt cho từng kiến trúc CPU trên Windows.
# yaml-language-server: $schema=https://raw.githubusercontent.com/TXAVL/txa-repo/main/tools/src/txa/schemas/build.schema.json
txa: 1
kind: build
ref: TXAVL.Everything@1.4.1
platform:
os: windows
min_build: 10.0.17763
scope: machine
targets:
- arch: x64
engine: msi
source:
url: https://www.voidtools.com/Everything-1.4.1.1032.x64.msi
sha256: 4E7A80885AAB8566B750C56A2A2B3E7C3C1F4920BCC53777E07F5EEB9E1F7485
size: 2351104
switches:
silent: /qn /norestart
progress: /qb! /norestart
- arch: arm64
engine: exe
source:
url: https://www.voidtools.com/Everything-1.4.1.1032.ARM64.zip
sha256: 23DCA1A64574BF30C9988BBAF5F1D201A0EC7EE9A15E12270AE92A52183CCCC8
size: 1933207
switches:
silent: /s
progress: /s
Các trường quy định:
| Trường | Bắt buộc | Kiểu | Mô tả & Giới hạn |
|---|---|---|---|
ref | Có | string | Mã tham chiếu khớp chính xác: <package.id>@<package.version>. |
platform.min_build | Có | string | Bản dựng Windows tối thiểu, ví dụ 10.0.17763 (Windows 10 1809+). |
scope | Có | string | Phạm vi cài đặt: machine (toàn máy - yêu cầu quyền Admin) hoặc user (người dùng hiện tại). |
targets | Có | array | Danh sách bộ cài theo CPU. Mỗi kiến trúc (x64, x86, arm64) chỉ được khai báo tối đa 1 lần. |
targets[].arch | Có | string | Kiến trúc CPU: x64, x86, arm64, arm, hoặc neutral. |
targets[].engine | Có | string | Công nghệ bộ cài: inno, nsis, msi, wix, exe, hoặc portable. |
targets[].source.url | Có | string | Đường dẫn HTTPS tải bộ cài trực tiếp từ trang chính thức. |
targets[].source.sha256 | Có | string | Mã băm SHA-256 (64 ký tự hex viết hoa). |
targets[].switches.silent | Tuỳ loại | string | Tham số cài đặt im lặng (với exe bắt buộc phải có, ví dụ /S, /VERYSILENT). |
targets[].shortcut | Không | object | Nơi chương trình được cài: name (tên shortcut/ứng dụng) và exe (đường dẫn chương trình, cho phép biến như %LOCALAPPDATA%). txapm không tự tạo shortcut; nó kiểm tra exe sau khi cài và nếu chương trình không có ở đó (bộ gỡ cũ xoá nhầm file mới khi nâng cấp) thì cài lại một lần. args tuỳ chọn. |
3. Thẻ thông tin mô tả: about.<lang>.txa.yaml
Cung cấp thông tin hiển thị, giấy phép và mô tả cho người dùng. Hỗ trợ đa ngôn ngữ độc lập (about.en-US.txa.yaml, about.vi-VN.txa.yaml, v.v.).
# yaml-language-server: $schema=https://raw.githubusercontent.com/TXAVL/txa-repo/main/tools/src/txa/schemas/about.schema.json
txa: 1
kind: about
ref: TXAVL.Everything@1.4.1
lang: en-US
name: Everything
publisher: voidtools
author: David Carpenter
summary: Everything is a search engine that locates files and folders by filename instantly for Windows.
homepage: https://www.voidtools.com/
license:
name: MIT
url: https://www.voidtools.com/License.txt
Các trường quy định:
| Trường | Bắt buộc | Kiểu | Mô tả & Giới hạn |
|---|---|---|---|
lang | Có | string | Mã ngôn ngữ định dạng BCP 47 (ví dụ en-US, vi-VN). Phải khớp với tên file. |
name | Có | string | Tên hiển thị đầy đủ của phần mềm (ví dụ: Everything). |
publisher | Có | string | Tên nhà phát hành hoặc tổ chức phát triển. |
summary | Có | string | Mô tả ngắn gọn (từ 10 đến 160 ký tự), không được lặp lại nguyên văn tên phần mềm. |
description | Không | string | Mô tả chi tiết chức năng phần mềm (tối đa 5000 ký tự). |
homepage | Không | string | Trang chủ chính thức của phần mềm (phải bắt đầu bằng https://). |
license.name | Có | string | Mã giấy phép chuẩn SPDX (ví dụ: MIT, GPL-3.0-or-later, Apache-2.0, Proprietary, Freeware). |
license.url | Tuỳ loại | string | Đường dẫn điều khoản giấy phép (bắt buộc với giấy phép Proprietary hoặc phi SPDX). |
The technical reference and the rules for every field of the three manifest cards of a TXA software package (TXA v1).
Overview
Each software release in the TXA repository is described by a folder holding 3 kinds of YAML manifest cards:
manifests/
└── <first_letter>/
└── <Namespace>/
└── <AppName>/
└── <Version_X.Y.Z>/
├── core.txa.yaml # Identity and core metadata card
├── build.txa.yaml # Installer, CPU architecture and switches card
├── about.en-US.txa.yaml # Description card (English)
└── about.vi-VN.txa.yaml # Description card (Vietnamese - optional)
1. The core card: core.txa.yaml
Defines the package's unique identity across the whole system.
# yaml-language-server: $schema=https://raw.githubusercontent.com/TXAVL/txa-repo/main/tools/src/txa/schemas/core.schema.json
txa: 1
kind: core
package:
id: TXAVL.Everything
version: 1.4.1
channel: stable
alias: evt
aliases:
- everything
locale:
default: en-US
tags:
- search
- file-search
- filesystem
Fields:
| Field | Required | Type | Description and limits |
|---|---|---|---|
txa | Yes | int | Version of the TXA schema specification (currently 1). |
kind | Yes | string | Must be core. |
package.id | Yes | string | Package identifier: <Namespace>.<AppName> (PascalCase). Example: TXAVL.Everything. |
package.version | Yes | string | Software version: strict SemVer X.Y.Z (for example 1.4.1). |
package.channel | No | string | Release channel: stable (default) or beta. |
package.alias | No | string | A short command name so users can type txapm install <alias> (lowercase, digits, hyphens, 2-32 characters). |
locale.default | Yes | string | The package's main language code (default: en-US or vi-VN). |
tags | No | array | Search keywords (at most 16 tags, lowercase, no special characters). |
2. The installer and platform card: build.txa.yaml
Sets how the installer runs for each CPU architecture on Windows.
# yaml-language-server: $schema=https://raw.githubusercontent.com/TXAVL/txa-repo/main/tools/src/txa/schemas/build.schema.json
txa: 1
kind: build
ref: TXAVL.Everything@1.4.1
platform:
os: windows
min_build: 10.0.17763
scope: machine
targets:
- arch: x64
engine: msi
source:
url: https://www.voidtools.com/Everything-1.4.1.1032.x64.msi
sha256: 4E7A80885AAB8566B750C56A2A2B3E7C3C1F4920BCC53777E07F5EEB9E1F7485
size: 2351104
switches:
silent: /qn /norestart
progress: /qb! /norestart
- arch: arm64
engine: exe
source:
url: https://www.voidtools.com/Everything-1.4.1.1032.ARM64.zip
sha256: 23DCA1A64574BF30C9988BBAF5F1D201A0EC7EE9A15E12270AE92A52183CCCC8
size: 1933207
switches:
silent: /s
progress: /s
Fields:
| Field | Required | Type | Description and limits |
|---|---|---|---|
ref | Yes | string | Exact reference: <package.id>@<package.version>. |
platform.min_build | Yes | string | Minimum Windows build, for example 10.0.17763 (Windows 10 1809+). |
scope | Yes | string | Install scope: machine (whole PC, needs admin rights) or user (the current user). |
targets | Yes | array | Installers per CPU. Each architecture (x64, x86, arm64) may be declared at most once. |
targets[].arch | Yes | string | CPU architecture: x64, x86, arm64, arm, or neutral. |
targets[].engine | Yes | string | Installer technology: inno, nsis, msi, wix, exe, or portable. |
targets[].source.url | Yes | string | HTTPS link to download the installer directly from the official site. |
targets[].source.sha256 | Yes | string | SHA-256 hash (64 uppercase hex characters). |
targets[].switches.silent | By type | string | Silent install switches (required for exe, for example /S, /VERYSILENT). |
targets[].shortcut | No | object | Where the program lands: name (shortcut/app name) and exe (program path, %ENV% variables allowed). txapm does not create a shortcut; it checks exe after the install and, if the program is not there (the previous version's uninstaller deleted new files during an upgrade), installs once more. Optional args. |
3. The description card: about.<lang>.txa.yaml
Holds the display information, license and description shown to users. Each language is independent (about.en-US.txa.yaml, about.vi-VN.txa.yaml, and so on).
# yaml-language-server: $schema=https://raw.githubusercontent.com/TXAVL/txa-repo/main/tools/src/txa/schemas/about.schema.json
txa: 1
kind: about
ref: TXAVL.Everything@1.4.1
lang: en-US
name: Everything
publisher: voidtools
author: David Carpenter
summary: Everything is a search engine that locates files and folders by filename instantly for Windows.
homepage: https://www.voidtools.com/
license:
name: MIT
url: https://www.voidtools.com/License.txt
Fields:
| Field | Required | Type | Description and limits |
|---|---|---|---|
lang | Yes | string | BCP 47 language code (for example en-US, vi-VN). Must match the file name. |
name | Yes | string | The full display name of the software (for example Everything). |
publisher | Yes | string | The publisher or the organization that develops it. |
summary | Yes | string | A short description (10 to 160 characters) that must not simply repeat the software name. |
description | No | string | A detailed description of what the software does (at most 5000 characters). |
homepage | No | string | The software's official homepage (must start with https://). |
license.name | Yes | string | A standard SPDX license id (for example MIT, GPL-3.0-or-later, Apache-2.0, Proprietary, Freeware). |
license.url | By type | string | Link to the license terms (required for Proprietary or non-SPDX licenses). |