#!/usr/bin/env bash # TACO — The Crypto Terminal for Degens # https://tacofun.party # Usage: curl -fsSL https://tacofun.party/install.sh | sh set -e BASE_URL="https://tacofun.party/downloads" RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' PINK='\033[0;35m' BOLD='\033[1m' RESET='\033[0m' print_header() { printf "\n" printf "${PINK}${BOLD}" printf " ████████╗ █████╗ ██████╗ ██████╗ \n" printf " ██╔══╝██╔══██╗██╔════╝██╔═══██╗\n" printf " ██║ ███████║██║ ██║ ██║\n" printf " ██║ ██╔══██║██║ ██║ ██║\n" printf " ██║ ██║ ██║╚██████╗╚██████╔╝\n" printf " ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ \n" printf "${RESET}\n" printf " ${BOLD}The Crypto Terminal for Degens${RESET}\n" printf " ${YELLOW}Solana · Base · ETH · BNB Chain${RESET}\n" printf "\n" } install_macos() { ARCH="$(uname -m)" if [ "$ARCH" = "arm64" ]; then DMG_URL="$BASE_URL/TACO-1.0.3-arm64.dmg" printf " Chip: ${BOLD}Apple Silicon (arm64)${RESET}\n\n" else DMG_URL="$BASE_URL/TACO-1.0.3-x64.dmg" printf " Chip: ${BOLD}Intel (x64)${RESET}\n\n" fi DMG_PATH="/tmp/TACO-install.dmg" printf "${BOLD}→ Downloading TACO...${RESET}\n\n" curl -fL --progress-bar "$DMG_URL" -o "$DMG_PATH" printf "\n${BOLD}→ Mounting...${RESET}\n" # Detach any existing TACO volume first hdiutil detach /Volumes/TACO -quiet 2>/dev/null || true hdiutil attach -nobrowse -quiet "$DMG_PATH" # Wait a moment for the volume to appear sleep 1 if [ ! -d "/Volumes/TACO/TACO.app" ]; then printf "${RED}✗ Could not find TACO.app in DMG${RESET}\n" hdiutil detach /Volumes/TACO -quiet 2>/dev/null || true rm -f "$DMG_PATH" exit 1 fi # Kill any running TACO processes first pkill -x TACO 2>/dev/null || true pkill -f TACO.app 2>/dev/null || true sleep 1 printf "${BOLD}→ Installing to /Applications...${RESET}\n" rm -rf /Applications/TACO.app rm -rf ~/Applications/TACO.app cp -r /Volumes/TACO/TACO.app /Applications/TACO.app printf "${BOLD}→ Removing macOS quarantine...${RESET}\n" xattr -cr /Applications/TACO.app 2>/dev/null || true printf "${BOLD}→ Clearing app cache...${RESET}\n" rm -rf ~/Library/Application\ Support/TACO/Cache rm -rf ~/Library/Application\ Support/TACO/Code\ Cache rm -rf ~/Library/Application\ Support/TACO/GPUCache hdiutil detach /Volumes/TACO -quiet 2>/dev/null || true rm -f "$DMG_PATH" sleep 1 printf "${GREEN}✓ Done! TACO is installed.${RESET}\n\n" printf " Opening TACO...\n" open /Applications/TACO.app } install_linux() { printf "${YELLOW}⚠ Linux support is coming soon!${RESET}\n\n" printf " Sign up: https://tacofun.party/#download\n\n" exit 0 } finish() { printf "\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n" printf " ${PINK}${BOLD}Welcome to TACO 🌮${RESET}\n\n" printf " https://tacofun.party\n\n" printf "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n" } # ── Main ────────────────────────────────────────────────────────────────────── print_header OS="$(uname -s)" printf " Platform: ${BOLD}$OS${RESET}\n" case "$OS" in Darwin) install_macos ;; Linux) install_linux ;; *) printf "${RED}✗ Unsupported OS: $OS${RESET}\n" exit 1 ;; esac finish