Only download mgba if it doesn't exist

This commit is contained in:
Gwilym Kuiper 2022-07-25 22:48:28 +01:00
parent 8d08f18349
commit ecf43f738b

View file

@ -6,6 +6,10 @@ CURRENT_DIRECTORY=$(pwd)
cd "${OUT_DIRECTORY}" || exit cd "${OUT_DIRECTORY}" || exit
if [[ ! -f "mgba-${MGBA_VERSION}.tar.gz" ]]; then
curl -L "https://github.com/mgba-emu/mgba/archive/refs/tags/${MGBA_VERSION}.tar.gz" -o "mgba-${MGBA_VERSION}.tar.gz"
fi
if [[ -f libmgba-cycle.a ]]; then if [[ -f libmgba-cycle.a ]]; then
exit 0 exit 0
fi fi