#!/usr/bin/env bash
set -xeuo pipefail

version="0.6.5"
name="Archipelago_${version}_linux-x86_64"
tarball="${name}.tar.gz"
curl -sSfL "https://github.com/ArchipelagoMW/Archipelago/releases/download/${version}/${tarball}" -o "/tmp/${tarball}"

tar xvf "/tmp/${tarball}" -C /opt/

rm -f "/tmp/${tarball}"
