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

Đặ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ườngBắt buộcKiểuMô tả & Giới hạn
txaCóintPhiên bản đặc tả schema TXA (hiện tại là 1).
kindCóstringPhải là core.
package.idCóstringĐịnh danh gói: dạng <Namespace>.<AppName> (PascalCase). Ví dụ: TXAVL.Everything.
package.versionCóstringPhiên bản phần mềm: chuẩn SemVer nghiêm ngặt X.Y.Z (ví dụ 1.4.1).
package.channelKhôngstringNhánh phát hành: stable (mặc định) hoặc beta.
package.aliasKhôngstringTê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.defaultCóstringMã ngôn ngữ chính của gói (mặc định: en-US hoặc vi-VN).
tagsKhôngarrayDanh 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ườngBắt buộcKiểuMô tả & Giới hạn
refCóstringMã tham chiếu khớp chính xác: <package.id>@<package.version>.
platform.min_buildCóstringBản dựng Windows tối thiểu, ví dụ 10.0.17763 (Windows 10 1809+).
scopeCóstringPhạ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).
targetsCóarrayDanh 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[].archCóstringKiến trúc CPU: x64, x86, arm64, arm, hoặc neutral.
targets[].engineCóstringCông nghệ bộ cài: inno, nsis, msi, wix, exe, hoặc portable.
targets[].source.urlCóstringĐường dẫn HTTPS tải bộ cài trực tiếp từ trang chính thức.
targets[].source.sha256CóstringMã băm SHA-256 (64 ký tự hex viết hoa).
targets[].switches.silentTuỳ loạistringTham số cài đặt im lặng (với exe bắt buộc phải có, ví dụ /S, /VERYSILENT).
targets[].shortcutKhôngobjectNơ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ườngBắt buộcKiểuMô tả & Giới hạn
langCóstringMã ngôn ngữ định dạng BCP 47 (ví dụ en-US, vi-VN). Phải khớp với tên file.
nameCóstringTên hiển thị đầy đủ của phần mềm (ví dụ: Everything).
publisherCóstringTên nhà phát hành hoặc tổ chức phát triển.
summaryCóstringMô 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.
descriptionKhôngstringMô tả chi tiết chức năng phần mềm (tối đa 5000 ký tự).
homepageKhôngstringTrang chủ chính thức của phần mềm (phải bắt đầu bằng https://).
license.nameCóstringMã giấy phép chuẩn SPDX (ví dụ: MIT, GPL-3.0-or-later, Apache-2.0, Proprietary, Freeware).
license.urlTuỳ loạistringĐườ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:

FieldRequiredTypeDescription and limits
txaYesintVersion of the TXA schema specification (currently 1).
kindYesstringMust be core.
package.idYesstringPackage identifier: <Namespace>.<AppName> (PascalCase). Example: TXAVL.Everything.
package.versionYesstringSoftware version: strict SemVer X.Y.Z (for example 1.4.1).
package.channelNostringRelease channel: stable (default) or beta.
package.aliasNostringA short command name so users can type txapm install <alias> (lowercase, digits, hyphens, 2-32 characters).
locale.defaultYesstringThe package's main language code (default: en-US or vi-VN).
tagsNoarraySearch 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:

FieldRequiredTypeDescription and limits
refYesstringExact reference: <package.id>@<package.version>.
platform.min_buildYesstringMinimum Windows build, for example 10.0.17763 (Windows 10 1809+).
scopeYesstringInstall scope: machine (whole PC, needs admin rights) or user (the current user).
targetsYesarrayInstallers per CPU. Each architecture (x64, x86, arm64) may be declared at most once.
targets[].archYesstringCPU architecture: x64, x86, arm64, arm, or neutral.
targets[].engineYesstringInstaller technology: inno, nsis, msi, wix, exe, or portable.
targets[].source.urlYesstringHTTPS link to download the installer directly from the official site.
targets[].source.sha256YesstringSHA-256 hash (64 uppercase hex characters).
targets[].switches.silentBy typestringSilent install switches (required for exe, for example /S, /VERYSILENT).
targets[].shortcutNoobjectWhere 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:

FieldRequiredTypeDescription and limits
langYesstringBCP 47 language code (for example en-US, vi-VN). Must match the file name.
nameYesstringThe full display name of the software (for example Everything).
publisherYesstringThe publisher or the organization that develops it.
summaryYesstringA short description (10 to 160 characters) that must not simply repeat the software name.
descriptionNostringA detailed description of what the software does (at most 5000 characters).
homepageNostringThe software's official homepage (must start with https://).
license.nameYesstringA standard SPDX license id (for example MIT, GPL-3.0-or-later, Apache-2.0, Proprietary, Freeware).
license.urlBy typestringLink to the license terms (required for Proprietary or non-SPDX licenses).