From e13432e8c17fc65bf4ea63535f448a439a2c674c Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Sat, 15 Mar 2025 01:13:45 +0100 Subject: [PATCH] small adjustments --- waydroid-installer.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/waydroid-installer.sh b/waydroid-installer.sh index 2e79778..8ba2b26 100755 --- a/waydroid-installer.sh +++ b/waydroid-installer.sh @@ -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