aports/testing/flare-game/flare-game-data-downloader.sh
2022-05-12 01:30:55 +02:00

13 lines
594 B
Bash
Executable file

#!/bin/sh
# Flare-game can be placed in two default locations: /usr/share/flare for system-wide installation
# or ~/.local/share/flare for user installation.
# It's better to place it inside user directory because each user could have their own game assets.
FG_VERSION=1.13.04
INST_DIRECTORY="$HOME/.local/share/flare"
echo "Downloading Flare Game data (version $FG_VERSION) ..."
mkdir -p ${INST_DIRECTORY}
curl -L https://github.com/flareteam/flare-game/releases/download/v${FG_VERSION}/flare-game-v${FG_VERSION}.tar.gz | tar -xz --strip-components=1 -C ${INST_DIRECTORY} -f -
echo 'Done.'