Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the install script to be more verbose (+mv instead of glibc) #197

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 28 additions & 20 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
rm ~/x

echo "Installing termux-am"
pkg install termux-am -y &>/dev/null
pkg install termux-am -y

termux-setup-storage & sleep 4 &>/dev/null
termux-setup-storage & sleep 4

while true; do
if [ -d ~/storage/shared ]; then
Expand All @@ -15,29 +15,34 @@ while true; do
fi
sleep 3
done

echo ""
echo "-----------------------------------------"
echo "Installing termux packages"
echo "-----------------------------------------"
apt-get clean
apt-get update >/dev/null 2>&1
apt-get -y --with-new-pkgs -o Dpkg::Options::="--force-confdef" upgrade >/dev/null 2>&1
pkg install x11-repo -y &>/dev/null
pkg install pulseaudio -y &>/dev/null
pkg install xwayland -y &>/dev/null
pkg install wget -y &>/dev/null
pkg install tsu -y &>/dev/null
pkg install root-repo -y &>/dev/null
pkg install patchelf -y &>/dev/null
pkg install p7zip -y &>/dev/null
pkg install xorg-xrandr -y &>/dev/null
pkg install ncurses-utils -y &>/dev/null
pkg install hashdeep -y &>/dev/null
pkg install termux-x11-nightly -y &>/dev/null

apt-get update
apt-get -y --with-new-pkgs -o Dpkg::Options::="--force-confdef" upgrade
pkg install x11-repo -y
pkg install pulseaudio -y
pkg install xwayland -y
pkg install wget -y
pkg install tsu -y
pkg install root-repo -y
pkg install patchelf -y
pkg install p7zip -y
pkg install xorg-xrandr -y
pkg install ncurses-utils -y
pkg install hashdeep -y
pkg install termux-x11-nightly -y
echo ""
echo "-----------------------------------------"
echo "Configuration"
echo "-----------------------------------------"
if [ -e $PREFIX/glibc ]; then
echo -n "Removing previous glibc. Continue? (Y/n) "
read i
if [ "$i" = "Y" ] || [ "$i" = "y" ]; then
rm -rf $PREFIX/glibc
mv -r $PREFIX/glibc $PREFIX/glibc-backup-mobox
else
return 1
fi
Expand Down Expand Up @@ -69,8 +74,10 @@ function wget-git-q {
wget -q --retry-connrefused --tries=0 --header "PRIVATE-TOKEN: $PRIVATE_TOKEN" "https://gitlab.com/api/v4/projects/$PROJECT_ID/repository/files/$1/raw?ref=main" -O $2
return $?
}

echo ""
echo "-----------------------------------------"
echo "Updating package manager"
echo "-----------------------------------------"
mkdir -p $PREFIX/glibc/opt/package-manager/installed

if [ "$INSTALL_WOW64" = "1" ]; then
Expand All @@ -96,4 +103,5 @@ sync-package wine-ge-custom-8-25
fi

ln -sf $PREFIX/glibc/opt/scripts/mobox $PREFIX/bin/mobox
echo "-----------------------------------------"
echo "To start - type \"mobox\""