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

version="2.10"
name="BizHawk-${version}-linux-x64"
tarball="${name}.tar.gz"
curl -sSfL "https://github.com/TASEmulators/BizHawk/releases/download/${version}/${tarball}" -o "/tmp/${tarball}"

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

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