#!/usr/bin/env bash
set -euo pipefail
APP_DIR="$HOME/.cache/lol-pace-client"
mkdir -p "$APP_DIR/client"
curl -fsSL "https://jjm.eta.pyhub.kr/download/bridge.py" -o "$APP_DIR/client/bridge.py"
curl -fsSL "https://jjm.eta.pyhub.kr/download/overlay_popup.swift" -o "$APP_DIR/client/overlay_popup.swift"
cd "$APP_DIR"
exec python3 -m client.bridge --server "https://jjm.eta.pyhub.kr" --insecure-local --overlay --launch-popup --save-match
