small adjustments

This commit is contained in:
Mario Voigt 2025-03-15 01:13:45 +01:00
parent 464e8c0dc1
commit e13432e8c1

View File

@ -7,6 +7,8 @@
# - Fedora 41 @ 14.03.2025 (vmario891)
# - TuxedoOS 24.04 LTS (Debian based)/noble @ 14.03.2025 (vmario891)
VERSION="0.3.11"
if [ "$EUID" -eq 0 ]
then echo "Please do not run as root"
exit 1
@ -16,9 +18,9 @@ echo -e "Elevating script for sudo permissions (please enter password, if asked)
sudo echo
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then
PACKMAN="apt"
PACKMAN="apt-get"
PVENV="python3-venv"
curl -s https://repo.waydro.id | sudo bash
curl -s https://repo.waydro.id | sudo bash > /dev/null
fi
# dnf/rpm based
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
@ -41,9 +43,9 @@ if [ ! -d waydroid_script ]; then
fi
echo -e "Downloading Borepin APK ..."
BOREPIN="org.fab_infra.fabaccess-Signed.apk"
wget https://gitlab.com/api/v4/projects/20862588/packages/generic/borepin/v0.3.11/$BOREPIN > /dev/null
if [ ! -f $BOREPIN ]; then
BOREPIN_APK="org.fab_infra.fabaccess-Signed.apk"
wget --quiet https://gitlab.com/api/v4/projects/20862588/packages/generic/borepin/v$VERSION/$BOREPIN_APK
if [ ! -f $BOREPIN_APK ]; then
echo -e "Error downloading ..."
exit 1
fi
@ -100,8 +102,8 @@ waydroid session start &
sleep 5
waydroid app install org.fab_infra.fabaccess-Signed.apk
rm org.fab_infra.fabaccess-Signed.apk > /dev/null
waydroid app install $BOREPIN_APK
rm $BOREPIN_APK > /dev/null
sleep 5