#!/bin/bash
set -e
DIR="$HOME/D20Realms"; mkdir -p "$DIR"
echo ">> Scarico il launcher (nessuna quarantena via curl)..."
curl -fsSL -o "$DIR/CanticoLauncher" https://patch.d20realms.com/CanticoLauncher-osx
chmod +x "$DIR/CanticoLauncher"; xattr -dr com.apple.quarantine "$DIR/CanticoLauncher" 2>/dev/null || true
cd "$DIR"; exec ./CanticoLauncher
