release: promote install-path fixes to main (26.8.0-beta.0) #10

Merged
chrnx merged 4 commits from develop into main 2026-08-07 22:12:06 +00:00
2 changed files with 23 additions and 12 deletions
Showing only changes of commit f88c11ac0b - Show all commits

No files matched your search

+14 -6
View File
@@ -1,24 +1,32 @@
# matcha # matcha
The [green-tea](https://git.svc.zoit.services/Green-Tea/core) CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate. The [green-tea](https://github.com/Expressive-Tea/green-tea) CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate.
## Install ## Install
```bash ```bash
curl -fsSL https://git.svc.zoit.services/Green-Tea/matcha/raw/branch/main/install.sh | sh cargo install matcha-cli
``` ```
Installs a prebuilt binary to `~/.local/bin` — no Rust required. Env vars go on Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha`
the `sh` side of the pipe: binary. Needs a Rust toolchain; takes a few seconds.
**Prebuilt binary** (no Rust), from the latest GitHub release:
```bash
curl -fsSL https://raw.githubusercontent.com/Expressive-Tea/matcha/main/install.sh | sh
```
Drops the binary in `~/.local/bin`. Env vars go on the `sh` side of the pipe:
```bash ```bash
curl -fsSL …/install.sh | MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin sh curl -fsSL …/install.sh | MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin sh
``` ```
**From source** (requires Rust — compiles and installs): **From git** (compiles the default branch):
```bash ```bash
cargo install --git https://git.svc.zoit.services/Green-Tea/matcha cargo install --git https://github.com/Expressive-Tea/matcha
``` ```
## Usage ## Usage
+9 -6
View File
@@ -1,14 +1,17 @@
#!/bin/sh #!/bin/sh
# matcha installer — downloads a prebuilt binary from Gitea Releases. # matcha installer — downloads a prebuilt binary from GitHub Releases.
# curl -fsSL <raw>/install.sh | sh # curl -fsSL <raw>/install.sh | sh
# Env: MATCHA_VERSION (tag, default latest), MATCHA_INSTALL_DIR (default ~/.local/bin), # Env: MATCHA_VERSION (tag, default latest), MATCHA_INSTALL_DIR (default ~/.local/bin),
# MATCHA_REPO_BASE (default the Gitea repo URL). # MATCHA_REPO_BASE / MATCHA_API_BASE (override to install from the internal Gitea,
# whose release API is GitHub-compatible for everything this script touches).
set -eu set -eu
REPO_BASE="${MATCHA_REPO_BASE:-https://git.svc.zoit.services/Green-Tea/matcha}" # Public by default: the Gitea host is unreachable outside the network, and this script
# The API lives at the host root (/api/v1/...), NOT under the repo path. Keep it # is what crates.io and the README point people at.
# separate from REPO_BASE (which is used for release DOWNLOAD urls under the repo). REPO_BASE="${MATCHA_REPO_BASE:-https://github.com/Expressive-Tea/matcha}"
API_BASE="${MATCHA_API_BASE:-https://git.svc.zoit.services/api/v1/repos/Green-Tea/matcha}" # The API lives on its own host, NOT under the repo path. Keep it separate from
# REPO_BASE (which is used for release DOWNLOAD urls under the repo).
API_BASE="${MATCHA_API_BASE:-https://api.github.com/repos/Expressive-Tea/matcha}"
INSTALL_DIR="${MATCHA_INSTALL_DIR:-$HOME/.local/bin}" INSTALL_DIR="${MATCHA_INSTALL_DIR:-$HOME/.local/bin}"
err() { echo "matcha-install: $*" >&2; exit 1; } err() { echo "matcha-install: $*" >&2; exit 1; }