Skip to content

Commit

Permalink
Update 1click.install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AryanVBW authored Dec 14, 2024
1 parent bf5d317 commit c081283
Showing 1 changed file with 60 additions and 18 deletions.
78 changes: 60 additions & 18 deletions 1click.install.sh
Original file line number Diff line number Diff line change
@@ -1,35 +1,77 @@
#!/bin/bash
echo "#####################################################";
echo "# _ _ ____ _ _ #";
echo "# | | (_)_ __ _ ___ _| _ \ _ __ ___ (_) __| |#";
echo "# | | | | '_ \| | | \ \/ / | | | '__/ _ \| |/ _` |#";
echo "# | |___| | | | | |_| |> <| |_| | | | (_) | | (_| |#";
echo "# |_____|_|_| |_|\__,_/_/\_\____/|_| \___/|_|\__,_|#";
echo "# One-Click Installer #";
echo "# by Vivek W #";
echo "# Github.com/AryanVBW #";
echo "#####################################################";
echo "Updating and upgrading packages..."
pkg update -y && pkg upgrade -y
echo "Setting up storage permissions..."

# Display Banner
echo "#####################################################"
echo "# _ _ ____ _ _ #"
echo "# | | (_)_ __ _ ___ _| _ \ _ __ ___ (_) __| |#"
echo "# | | | | '_ \| | | \ \/ / | | | '__/ _ \| |/ _` |#"
echo "# | |___| | | | | |_| |> <| |_| | | | (_) | | (_| |#"
echo "# |_____|_|_| |_|\__,_/_/\_\____/|_| \___/|_|\__,_|#"
echo "# One-Click Installer #"
echo "# by Vivek W #"
echo "# Github.com/AryanVBW #"
echo "#####################################################"
# Detect Android Version (without root)
android_version=$(getprop ro.build.version.release)
echo "Detected Android version: $android_version"
# Check and Update Packages
echo "Checking for package updates..."
if ! pkg list-updates &> /dev/null; then
echo "No package updates available."
else
echo "Updating and upgrading packages..."
pkg update -y && pkg upgrade -y
fi
# Request Storage Permission
echo "Requesting storage permission for Termux..."
termux-setup-storage
echo "Installing wget and figlet..."
pkg install wget -y && pkg install figlet -y
# Install Dependencies
echo "Installing required packages..."
pkg install wget figlet curl -y
# Download and Prepare Scripts
echo "Downloading LinuxDroid menu script..."
curl -O https://github.com/AryanVBW/LinuxDroid/releases/download/scripts/LinuxDroidmenu.sh
if [[ ! -f LinuxDroidmenu.sh ]]; then
echo "Error: Failed to download LinuxDroid menu script."
exit 1
fi
chmod +x LinuxDroidmenu.sh
echo "Downloading default bashrc..."
curl -O https://github.com/AryanVBW/LinuxDroid/releases/download/A1/default.bashrc
if [[ ! -f default.bashrc ]]; then
echo "Error: Failed to download default bashrc."
exit 1
fi
chmod +x default.bashrc
echo "Replacing current .bashrc with default bashrc..."
rm -rf .bashrc && cp default.bashrc .bashrc
# Backup existing .bashrc (optional)
echo "Backing up existing .bashrc (if it exists)..."
if [[ -f ~/.bashrc ]]; then
mv ~/.bashrc ~/.bashrc.bak
echo "Existing .bashrc backed up to ~/.bashrc.bak"
else
echo "No existing .bashrc found."
fi
echo "Copying default bashrc..."
cp default.bashrc ~/.bashrc
# Download and Run LinuxDroid Script
echo "Downloading and running LinuxDroid script..."
curl -O https://github.com/AryanVBW/LinuxDroid/releases/download/scripts/LinuxDroid.sh
if [[ ! -f LinuxDroid.sh ]]; then
echo "Error: Failed to download LinuxDroid script."
exit 1
fi
chmod +x LinuxDroid.sh
bash LinuxDroid.sh
# Installation Complete Message
echo "Installation completed! Run ./LinuxDroidmenu.sh to start."

0 comments on commit c081283

Please sign in to comment.