diff --git a/build.sh b/build.sh index fb165de2..e0d0e2f0 100644 --- a/build.sh +++ b/build.sh @@ -51,6 +51,14 @@ if [ ! -d "$ATMOSPHERE_DIR" ]; then echo echo "*** Cloning atmosphere ***" git clone "$ATMOSPHERE_URL" "$ATMOSPHERE_DIR" + + cd "$ATMOSPHERE_DIR" + + git fetch --tags --quiet + LATEST_TAG=$(git tag --sort=-version:refname | head -n1) + git checkout -q -b build "$LATEST_TAG" + + cd "$ROOT_DIR" fi DEST="build/atmosphere/stratosphere/loader/"