#!/usr/bin/env bash
# Release-folder entry: routes to OS-specific installer.
set -euo pipefail

ROOT="$(cd "$(dirname "$0")" && pwd)"

case "$(uname -s)" in
  Linux*)
    exec sudo bash "$ROOT/install-from-folder.sh" "$ROOT"
    ;;
  MINGW*|MSYS*|CYGWIN*)
    echo "On Windows, double-click Install.cmd in this folder."
    exit 1
    ;;
  Darwin*)
    echo "macOS install is not available yet. Use Ubuntu/Debian or Windows."
    exit 1
    ;;
  *)
    echo "Unsupported OS. Use Install.cmd (Windows) or install.sh on Linux."
    exit 1
    ;;
esac
