From 118f24e1ba170f992c5e9439bdb491ef6b6d4fbb Mon Sep 17 00:00:00 2001 From: yuez Date: Wed, 28 Oct 2026 16:30:25 +0800 Subject: [PATCH] docs: drop the self-hosted pacman channel; install and update via the curl installer --- README.md | 5 +++-- docs/install.md | 12 ++++++++---- packaging/README.md | 18 +++++++++++++----- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 570fabf..6cfd011 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ To uninstall: curl -fsSL https://raw.githubusercontent.com/zgs225/pi2d/main/scripts/install.sh | sh -s -- --uninstall ``` -### Channel C: System packages (Homebrew & AUR) +### Channel C: System packages (Homebrew, AUR) *(Available once the release that publishes binaries has shipped)*: @@ -58,7 +58,8 @@ curl -fsSL https://raw.githubusercontent.com/zgs225/pi2d/main/scripts/install.sh ```bash brew install zgs225/tap/pi2d ``` -- **Arch Linux / Manjaro / EndeavourOS (AUR):** +- **Arch Linux / Manjaro / EndeavourOS (AUR `pi2d-bin`):** + *(AUR account registration is temporarily closed upstream — until it reopens, Arch users install with the [curl installer](#channel-b-standalone-curl-installer-no-node-required) above)*: ```bash paru -S pi2d-bin # or: yay -S pi2d-bin ``` diff --git a/docs/install.md b/docs/install.md index 0647161..308f68c 100644 --- a/docs/install.md +++ b/docs/install.md @@ -15,7 +15,7 @@ Find your situation in the table below to choose the right installation command | **I have Node 20+** | `npm i -g @yuez/pi2d`
*(or `pnpm add -g`, `bun add -g`, `mise use -g npm:@yuez/pi2d`)* | The `pi2` CLI running directly on your existing Node.js environment, updated via standard package manager commands. | | **no Node / old Node** | `curl -fsSL https://raw.githubusercontent.com/zgs225/pi2d/main/scripts/install.sh \| sh` | Standalone compiled binary in `~/.local/lib/pi2d` symlinked to `~/.local/bin/pi2`. Requires zero Node/npm dependencies and no root access. | | **macOS** | `brew install zgs225/tap/pi2d`
*(or the curl installer)* | Native Homebrew formula. Places `pi2` in `$(brew --prefix)/bin` and web assets in `$(brew --prefix)/share/pi2d/web/dist`. | -| **Arch / EndeavourOS** | `paru -S pi2d-bin`
*(or `yay -S pi2d-bin`)* | Native Arch package managed by pacman. Binary in `/usr/bin/pi2`, web assets in `/usr/share/pi2d/web/dist`. | +| **Arch / EndeavourOS / Manjaro** | `curl -fsSL https://raw.githubusercontent.com/zgs225/pi2d/main/scripts/install.sh \| sh`
*(AUR `pi2d-bin` once AUR registration reopens)* | Standalone binary in `~/.local/lib/pi2d` + `~/.local/bin/pi2`. Package-manager channels are paused: the AUR is not accepting accounts, so the curl installer is the working path today. | | **NixOS** | `curl -fsSL https://raw.githubusercontent.com/zgs225/pi2d/main/scripts/install.sh \| sh`
*(or dev checkout)* | Standalone binary in user home (`~/.local/bin/pi2`). Bun's `-musl` binaries are dynamically linked against the musl loader, so running a prebuilt binary on NixOS needs `nix-ld` (or an FHS env / `steam-run`-style wrapper). | | **I want it to survive reboot and logout** | `pi2 install-service --write`
`systemctl --user enable --now pi2.service`
`loginctl enable-linger $USER` | Background systemd user service (or launchd on macOS) that starts at boot and stays alive when SSH sessions disconnect. | | **I only want to try it** | Install via curl or npm, then run:
`pi2 daemon` | Foreground daemon in your current terminal. Logs stream to stdout/stderr. Stop anytime with `Ctrl-C` or `pi2 stop`. | @@ -25,7 +25,7 @@ Find your situation in the table below to choose the right installation command ## Install channels -`pi2d` distributes through three primary channels: +`pi2d` distributes through four primary channels: ### Channel A: Global package manager (Node >= 20) @@ -106,7 +106,11 @@ brew install zgs225/tap/pi2d - UI Assets: `$(brew --prefix)/share/pi2d/web/dist` #### Arch Linux / Manjaro / EndeavourOS (AUR) + +> **AUR registration paused**: New user registration on the AUR is temporarily closed upstream (HTTP 503: "Registration on the AUR is paused while we deal with a wave of automated account creation..."). Until registration reopens and `pi2d-bin` can be submitted, the AUR channel is unavailable. Use **[Channel B: Standalone curl installer](#channel-b-standalone-curl-installer-no-node-required)** instead — it works on Arch today and `pi2 update`s with the same command. + ```bash +# (When AUR registration reopens) paru -S pi2d-bin # or: yay -S pi2d-bin @@ -316,7 +320,7 @@ systemctl --user restart pi2.service brew update && brew upgrade pi2d ``` -- **Channel C (Arch AUR)**: +- **Channel C (Arch AUR — when reopened)**: ```bash paru -Syu pi2d-bin # or: @@ -342,7 +346,7 @@ systemctl --user restart pi2.service brew uninstall pi2d ``` -- **Channel C (Arch AUR)**: +- **Channel C (Arch AUR — when reopened)**: ```bash sudo pacman -R pi2d-bin ``` diff --git a/packaging/README.md b/packaging/README.md index d6eec00..3550242 100644 --- a/packaging/README.md +++ b/packaging/README.md @@ -12,7 +12,7 @@ both the CLI launcher and the React web console. |---|---|---| | **curl installer** | Generic Linux & macOS | `curl -fsSL https://raw.githubusercontent.com/zgs225/pi2d/main/scripts/install.sh \| sh` | | **Homebrew tap** | macOS & Linux (Homebrew) | `brew install zgs225/tap/pi2d` | -| **Arch AUR (`-bin`)** | Arch Linux / Manjaro / EndeavourOS | `paru -S pi2d-bin` (or `yay -S pi2d-bin`) | +| **Arch AUR (`-bin`)** | Arch Linux / Manjaro / EndeavourOS | `paru -S pi2d-bin` (when AUR registration reopens) | ### Shared Tarball Layout Contract @@ -77,6 +77,13 @@ or `/usr`). ### 2. Arch Linux AUR (`pi2d-bin`) +> **Note on AUR registration**: Account registration on [aur.archlinux.org](https://aur.archlinux.org) is +> temporarily paused upstream (HTTP 503: "Registration on the AUR is paused while we deal with a +> wave of automated account creation..."). AUR remains the intended canonical upstream channel for +> Arch users once registration reopens. In the interim, Arch users install with the curl +> installer (see `docs/install.md`, Channel B) — it is the only package path that works today. + +Once registration reopens: 1. Register an account on [aur.archlinux.org](https://aur.archlinux.org) and add your SSH public key. 2. Initialize the AUR package repository locally: ```bash @@ -100,12 +107,13 @@ During a release (via GitHub Actions workflow when a version tag `vX.Y.Z` is pus ```bash bash scripts/update-packaging.sh --version --checksums dist-bin/SHA256SUMS --out build/packaging ``` -3. The generated `build/packaging/pi2d.rb` is committed and pushed to `Formula/pi2d.rb` in +3. **Homebrew**: the generated `build/packaging/pi2d.rb` is committed and pushed to `Formula/pi2d.rb` in the `zgs225/homebrew-tap` repository. -4. The generated `build/packaging/PKGBUILD` and `build/packaging/.SRCINFO` are committed - and pushed to the `pi2d-bin` AUR repository. +4. **Arch AUR (`pi2d-bin`)**: + - Once AUR registration reopens, the generated `build/packaging/PKGBUILD` and + `build/packaging/.SRCINFO` will be committed and pushed to the `pi2d-bin` AUR repository. -## Local Regeneration +## Local Regeneration & Building You can regenerate or preview packaging files locally at any time: