Skip to content

Installation zh TW

KoukeNeko edited this page Sep 9, 2026 · 9 revisions

Installation

English · 繁體中文

套件管理器

macOS 與 Linux 用 Homebrew:

brew install koukeneko/tap/taiga

Windows 用 Scoop:

scoop bucket add koukeneko https://github.com/KoukeNeko/scoop-bucket
scoop install koukeneko/taiga-cli

Debian/Ubuntu 或 Fedora/RHEL,建議從簽章的 APT/DNF 倉庫安裝,apt upgrade / dnf upgrade 會自動更新。

Debian / Ubuntu:

sudo install -d /etc/apt/keyrings
sudo curl -fsSL https://koukeneko.github.io/taiga-cli/taiga-cli.gpg.key -o /etc/apt/keyrings/taiga-cli.gpg.key
echo "deb [signed-by=/etc/apt/keyrings/taiga-cli.gpg.key] https://koukeneko.github.io/taiga-cli/deb stable main" | sudo tee /etc/apt/sources.list.d/taiga-cli.list
sudo apt update && sudo apt install taiga-cli

Fedora / RHEL:

sudo tee /etc/yum.repos.d/taiga-cli.repo >/dev/null <<'EOF'
[taiga-cli]
name=Taiga CLI
baseurl=https://koukeneko.github.io/taiga-cli/rpm
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://koukeneko.github.io/taiga-cli/taiga-cli.gpg.key
EOF
sudo dnf install taiga-cli

套件名稱為 taiga-cli,指令為 taiga。每個 release 也附有獨立的 .deb/.rpm 供直接下載——見 INSTALL.zh-TW.md。

安裝腳本、release archive、升級與解除安裝指令見 INSTALL.zh-TW.md。

從原始碼建置

需要 Go 1.25 或更新版本。

make build
./bin/taiga version

安裝到 ~/.local/bin:

make install

自訂安裝位置:

make install PREFIX=/usr/local

taiga version 會顯示版本、commit、建置時間與平台;--json 可取得結構化輸出。

Release archive

正式 release archive 的下載、SHA-256 checksum 驗證、shell completion 安裝與升級步驟,見 repository 中的 INSTALL.zh-TW.md。

每個 release 包含六個平台的 archive、四種 shell completion、SHA256SUMS 與一份 SPDX 2.3 SBOM。 相同的 source、Go toolchain、version、commit 與 SOURCE_DATE_EPOCH 會產生位元完全相同的 Linux 與 Windows archive,因此第三方可以獨立重建並比對。

macOS 是例外:其 binary 以 Developer ID 憑證簽署並經 Apple notarization,而 notarization 要求安全時間戳, 因此簽章無法重現。除簽章外其餘建置方式完全相同;本機未設定簽署時重建 darwin archive 仍是可重現的。

macOS Gatekeeper

Release 的 macOS binary 已簽署並通過 notarization,直接執行即可:

codesign --verify --strict --verbose=2 ./taiga
spctl -a -vvv -t install ./taiga

Notarization ticket 無法 staple 到裸執行檔,Gatekeeper 會線上查驗。首次執行若完全沒有網路仍可能被擋, 連網後重試即可,或用 xattr -d com.apple.quarantine ./taiga 移除隔離屬性。以 curl/wget 下載的 檔案本來就不會被加上隔離屬性。

自行重建 release artifacts

make release \
  VERSION=v0.1.0 \
  COMMIT="$(git rev-parse HEAD)" \
  SOURCE_DATE_EPOCH="$(git show -s --format=%ct HEAD)"

輸出位於 dist/v0.1.0/。

支援平台

macOS、Linux、Windows 的 amd64 與 arm64,全部以 CGO_ENABLED=0 建置。已驗證的 Taiga 版本與登入方式 見 COMPATIBILITY.zh-TW.md。

Clone this wiki locally