Skip to content

Commit b3bb2dc

Browse files
Update get-dependencies.sh
1 parent 7066e3d commit b3bb2dc

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

get-dependencies.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,19 @@ get-debloated-pkgs --add-common --prefer-nano
1919
#make-aur-package PACKAGENAME
2020

2121
# If the application needs to be manually built that has to be done down here
22-
# if [ "${DEVEL_RELEASE-}" = 1 ]; then
23-
echo "Making nightly build of CatacombGL..."
22+
echo "Building CatacombGL..."
2423
echo "---------------------------------------------------------------"
2524
REPO="https://github.com/ArnoAnsems/CatacombGL"
26-
VERSION="$(git ls-remote "$REPO" HEAD | cut -c 1-9 | head -1)"
27-
git clone "$REPO" ./CatacombGL
25+
if [ "${DEVEL_RELEASE-}" = 1 ]; then
26+
echo "Making nightly build of CatacombGL..."
27+
echo "---------------------------------------------------------------"
28+
VERSION="$(git ls-remote "$REPO" HEAD | cut -c 1-9 | head -1)"
29+
git clone "$REPO" ./CatacombGL
30+
else
31+
echo "Making stable build of CatacombGL..."
32+
VERSION="$(git ls-remote --tags --sort="v:refname" "$REPO" | tail -n1 | sed 's/.*\///; s/\^{}//; s/^v//')"
33+
git clone --branch v"$VERSION" --single-branch --recursive --depth 1 "$REPO" ./CatacombGL
34+
fi
2835
echo "$VERSION" > ~/version
2936

3037
mkdir -p ./AppDir/bin
@@ -33,6 +40,3 @@ mkdir build && cd build
3340
cmake .. -DCMAKE_BUILD_TYPE=Release
3441
make -j$(nproc)
3542
mv -v CatacombGL ../../AppDir/bin
36-
# else
37-
# regular build steps
38-
# fi

0 commit comments

Comments
 (0)