4 Commits
Author SHA1 Message Date
chrnx 4cf92b18e5 Merge develop: installer latest-URL fix + matcha --version
Release / build (macos-14, aarch64-apple-darwin) (push) Successful in 11s
Release / build (macos-14, x86_64-apple-darwin) (push) Successful in 11s
Release / build (ubuntu-latest, x86_64-unknown-linux-musl) (push) Successful in 48s
2026-07-12 18:18:18 -05:00
chrnx 77c3c2a0ff Merge branch 'develop' of ssh://git.svc.zoit.services:2232/Green-Tea/matcha into develop 2026-07-12 18:14:38 -05:00
chrnx c7b58db24e Merge fix/installer-latest-url: installer latest-URL fix + matcha --version 2026-07-12 18:14:04 -05:00
chrnx 7080b207a7 fix: installer resolves latest via host-root API (was 404 on repo-path); add matcha --version
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2026-07-12 18:13:54 -05:00
2 changed files with 5 additions and 2 deletions

No files matched your search

+4 -1
View File
@@ -6,6 +6,9 @@
set -eu
REPO_BASE="${MATCHA_REPO_BASE:-https://git.svc.zoit.services/Green-Tea/matcha}"
# The API lives at the host root (/api/v1/...), 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://git.svc.zoit.services/api/v1/repos/Green-Tea/matcha}"
INSTALL_DIR="${MATCHA_INSTALL_DIR:-$HOME/.local/bin}"
err() { echo "matcha-install: $*" >&2; exit 1; }
@@ -47,7 +50,7 @@ esac
version="${MATCHA_VERSION:-latest}"
if [ "$version" = "latest" ]; then
tag=$(fetch "$REPO_BASE/api/v1/repos/Green-Tea/matcha/releases/latest" \
tag=$(fetch "$API_BASE/releases/latest" \
| grep -o '"tag_name":[[:space:]]*"[^"]*"' | head -1 | cut -d'"' -f4)
[ -n "$tag" ] || err "could not resolve latest release tag"
else
+1 -1
View File
@@ -1,7 +1,7 @@
use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(name = "matcha", about = "green-tea CLI")]
#[command(name = "matcha", version, about = "green-tea CLI")]
pub struct Cli {
#[command(subcommand)]
pub command: Command,