Skip to content

Commit f2a0260

Browse files
Update get-dependencies.sh
1 parent 323a400 commit f2a0260

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

get-dependencies.sh

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ ARCH=$(uname -m)
66

77
echo "Installing package dependencies..."
88
echo "---------------------------------------------------------------"
9-
# pacman -Syu --noconfirm PACKAGESHERE
9+
pacman -Syu --noconfirm \
10+
libdecor \
11+
sdl2 \
12+
vulkan-headers
1013

1114
echo "Installing debloated packages..."
1215
echo "---------------------------------------------------------------"
@@ -16,11 +19,18 @@ get-debloated-pkgs --add-common --prefer-nano
1619
#make-aur-package PACKAGENAME
1720

1821
# If the application needs to be manually built that has to be done down here
22+
echo "Getting app..."
23+
echo "---------------------------------------------------------------"
24+
case "$ARCH" in # they use X64 and ARM64 for the zip links
25+
x86_64) zip_arch=Linux-X64-Release;;
26+
aarch64) zip_arch=Linux-ARM64-Release;;
27+
esac
28+
ZIP_LINK=$(wget -qO- https://api.github.com/repos/RevoSucks/BMHeroRecomp/releases \
29+
| sed 's/[()",{} ]/\n/g' | grep -o -m 1 "https.*BMHeroRecompiled.*$zip_arch.zip")
30+
echo "$ZIP_LINK" | awk -F'/' '{gsub(/^v/, "", $(NF-1)); print $(NF-1); exit}' > ~/version
31+
wget --retry-connrefused --tries=30 "$ZIP_LINK" -O /tmp/app.zip
1932

20-
# if you also have to make nightly releases check for DEVEL_RELEASE = 1
21-
#
22-
# if [ "${DEVEL_RELEASE-}" = 1 ]; then
23-
# nightly build steps
24-
# else
25-
# regular build steps
26-
# fi
33+
mkdir -p ./AppDir/bin
34+
bsdtar -xvf /tmp/app.zip -C .
35+
bsdtar -xvf ./BMHeroRecompiled.tar.gz -C ./AppDir/bin
36+
wget -q -O ./AppDir/bin/recompcontrollerdb.txt https://raw.githubusercontent.com/mdqinc/SDL_GameControllerDB/master/gamecontrollerdb.txt

0 commit comments

Comments
 (0)