#!/bin/bash
# Finder double-click wrapper for macOS. Keep this file next to install-mods.sh.
cd "$(dirname "$0")" || exit 1
if [[ ! -f ./install-mods.sh ]]; then
  echo "install-mods.sh が同じフォルダにありません。zip を展開してください。"
  echo
  read -r -p "Press Return to close this window."
  exit 1
fi
chmod +x ./install-mods.sh 2>/dev/null || true
./install-mods.sh "$@"
status=$?
echo
if [[ $status -eq 0 ]]; then
  echo "Done. Launch NeoForge 21.1.250 and connect to 129.146.166.34:25565"
else
  echo "Install failed (exit $status)."
fi
echo
read -r -p "Press Return to close this window."
exit "$status"
