@echo off
setlocal
if not defined TAPROOM_INSTALL_BASE_URL set "TAPROOM_INSTALL_BASE_URL=https://taproom.aquilainteractive.io"
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "irm '%TAPROOM_INSTALL_BASE_URL%/api/downloads/taproom-cli/latest/install.ps1' | iex"
if errorlevel 1 exit /b %ERRORLEVEL%
set "taproom_bin=%LOCALAPPDATA%\Taproom\bin"
if defined TAPROOM_INSTALL_DIR set "taproom_bin=%TAPROOM_INSTALL_DIR%"
endlocal & set "PATH=%taproom_bin%;%PATH%"
