From 9acd53b10f21ee5d5c140ecb47ce3b81ecbdbddc Mon Sep 17 00:00:00 2001 From: Dipak Date: Sat, 11 Jul 2026 04:00:19 +0530 Subject: [PATCH] install.sh: tmux dependency hints for Fedora/RHEL, Arch, and openSUSE The tmux-missing warning only offered brew and apt one-liners; Fedora, Arch, and openSUSE users got no copy-paste command. The warning is now a short per-distro list (dnf / pacman / zypper), and the fatal Node hint mentions 'nvm install 24' as the works-everywhere option. Closes #70 --- scripts/install.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 0135799..247da5b 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -30,7 +30,7 @@ say "RoamCode installer" # 1. Preflight — fail early with an actionable message (no half-installs). command -v git >/dev/null 2>&1 || die "git not found. Install git, then re-run." -command -v node >/dev/null 2>&1 || die "Node.js not found. Install Node >= 24 (https://nodejs.org), then re-run." +command -v node >/dev/null 2>&1 || die "Node.js not found. Install Node >= 24 (https://nodejs.org — or 'nvm install 24' on any distro), then re-run." NODE_MAJOR="$(node -p 'process.versions.node.split(".")[0]' 2>/dev/null || echo 0)" [ "$NODE_MAJOR" -ge 24 ] || die "Node >= 24 required (found $(node -v 2>/dev/null)). Upgrade Node, then re-run." @@ -60,8 +60,13 @@ fi if command -v tmux >/dev/null 2>&1; then ok "Found $(tmux -V 2>/dev/null)" else - warn "'tmux' was not found on PATH — it's REQUIRED for terminal sessions. Install it (macOS: 'brew install" - warn "tmux'; Debian/Ubuntu: 'sudo apt install tmux'), then re-run, or sessions won't start." + warn "'tmux' was not found on PATH — it's REQUIRED for terminal sessions. Install it, then re-run," + warn "or sessions won't start:" + warn " macOS: brew install tmux" + warn " Debian/Ubuntu: sudo apt install tmux" + warn " Fedora/RHEL: sudo dnf install tmux" + warn " Arch: sudo pacman -S tmux" + warn " openSUSE: sudo zypper install tmux" fi # 2. Clone or update.