#!/bin/bash # LimitRing installer - https://limitring.aembaltic.com # Downloads LimitRing.app into ~/Applications and opens it. No sudo, nothing else is installed. set -euo pipefail BASE="${LIMITRING_BASE:-https://limitring.aembaltic.com}" DEST="$HOME/Applications" if [[ "$(uname)" != "Darwin" ]]; then echo "LimitRing is a Mac app."; exit 1; fi if [[ "$(sw_vers -productVersion | cut -d. -f1)" -lt 13 ]]; then echo "LimitRing needs macOS 13 or later."; exit 1; fi TMP="$(mktemp -d)" trap 'rm -rf "$TMP"' EXIT echo "Downloading LimitRing..." curl -fsSL "$BASE/download/LimitRing.zip" -o "$TMP/LimitRing.zip" ditto -x -k "$TMP/LimitRing.zip" "$TMP" pkill -x LimitRing 2>/dev/null && sleep 1 || true mkdir -p "$DEST" rm -rf "$DEST/LimitRing.app" mv "$TMP/LimitRing.app" "$DEST/" open "$DEST/LimitRing.app" echo "Done. LimitRing is in your menu bar and opens at login (switch that off in its menu)." if ! command -v claude >/dev/null 2>&1 && [[ ! -x "$HOME/.local/bin/claude" ]]; then echo "Note: Claude Code was not found. LimitRing needs it: https://claude.com/product/claude-code" fi