Skip to content

Commit 03a8a93

Browse files
authored
get app
1 parent dc42a55 commit 03a8a93

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

get-dependencies.sh

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,23 @@ get-debloated-pkgs --add-common --prefer-nano
1515
# Comment this out if you need an AUR package
1616
#make-aur-package PACKAGENAME
1717

18-
# If the application needs to be manually built that has to be done down here
19-
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
18+
echo "Getting binary..."
19+
echo "---------------------------------------------------------------"
20+
case "$ARCH" in
21+
x86_64) farch=amd64;;
22+
aarch64) farch=arm64;;
23+
esac
24+
link=$(wget https://api.github.com/repos/tinyhumansai/openhuman/releases -O - \
25+
| sed 's/[()",{} ]/\n/g' | grep -o -m 1 "https.*/OpenHuman_.*_$farch.deb")
26+
wget --retry-connrefused --tries=30 "$link" -O /tmp/temp.deb
27+
ar x /tmp/temp.deb
28+
tar -xvf ./data.tar.gz
29+
rm -f ./*.tar.gz /tmp/temp.deb
30+
31+
mkdir -p ./AppDir/bin
32+
cp -vr ./usr/share/OpenHuman/* ./AppDir/bin
33+
cp -v ./usr/share/applications/*.desktop ./AppDir
34+
cp -v ./usr/share/icons/hicolor/128x128/apps/OpenHuman.png ./AppDir
35+
cp -v ./usr/share/icons/hicolor/128x128/apps/OpenHuman.png ./AppDir/.DirIcon
36+
37+
echo "$link" | awk -F'/' '{print $(NF-1)}' > ~/version

0 commit comments

Comments
 (0)