#!/bin/sh
# Start the Jonia launcher with the bundled Java for this Mac's CPU
resources="$(cd "$(dirname "$0")/../Resources" && pwd)"
case "$(uname -m)" in
	arm64) runtime="$resources/runtime-arm64" ;;
	*) runtime="$resources/runtime-x64" ;;
esac
exec "$runtime/bin/java" "-Xdock:name=Jonia" -Xdock:icon="$resources/Jonia.icns" \
	-jar "$resources/jonia-launcher.jar" "$@"
