#!/bin/sh
DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
case "$(uname -m)" in
  arm64) BIN="$DIR/JingRiConnect-arm64" ;;
  x86_64) BIN="$DIR/JingRiConnect-x64" ;;
  *) osascript -e 'display alert "JingRi Connect" message "This Mac processor is not supported."'; exit 1 ;;
esac
open -a Terminal "$BIN"
