Skip to content

Commit f4796b9

Browse files
authored
v0.16
Added Python & Java Version Changer Desktop Launchers Added Java 8 Fixed Java & Python symlinks so you can select Alternative versions depending on your build scenario Minor Code Cleanup
1 parent dcc8ec7 commit f4796b9

File tree

1 file changed

+40
-8
lines changed

1 file changed

+40
-8
lines changed

DekstopLauncher.sh

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,32 @@
33
## Custom Linux Android Build Environment Setup Launcher
44
## Copyright: 2020 A-Team Digital Solutions
55

6-
echo " Custom Linux Android Build Environment Setup Launcher"
7-
echo " Made By: PizzaG"
8-
echo " Version: 0.15"
9-
echo " Version Date:10-8-2020"
6+
echo " __________________________________________________"
7+
echo " |Linux Android Build Environment Setup Launcher |"
8+
echo " |Made By: PizzaG |"
9+
echo " |Version: 0.16 |"
10+
echo " |Version Date:10-9-2020 |"
11+
echo " |_________________________________________________|"
12+
echo " "
1013

14+
echo " "
1115
echo " Loading Setup Launcher..."
16+
echo " "
1217
sleep 5
1318

1419
## **BugFix
20+
echo " "
1521
echo " Remove Directories For Fresh Install"
22+
echo " "
1623
sudo rm -rf ~/Android/Recoveries/TWRP-device-tree-generator
1724
sudo rm -rf ~/Android/Recoveries/Device-Tree-Generator
1825
sudo rm -rf ~/Android/SuperR-RomKitchen
1926
sudo rm -rf ~/Android/SuperR_RomKitchen
2027

2128
## Create & Setup Directories
29+
echo " "
2230
echo " Create & Setup Directories"
31+
echo " "
2332
mkdir -p ~/Android
2433
mkdir -p ~/Android/Build_Env_Setup
2534
mkdir -p ~/Android/Roms
@@ -28,7 +37,9 @@ mkdir -p ~/Android/Recoveries
2837
mkdir -p ~/Android/Recoveries/Device-Tree-Generator
2938

3039
## Install & Setup Device Tree Generator
40+
echo " "
3141
echo " Install & Setup Device Tree Generator"
42+
echo " "
3243
cd ~/Android/Recoveries
3344
sudo git clone https://github.com/PizzaG/Device-Tree-Generator
3445
cd ~/Android/Recoveries/Device-Tree-Generator
@@ -40,7 +51,9 @@ cd ~/Android/Recoveries/Device-Tree-Generator
4051
sudo mv ~/Android/Recoveries/Device-Tree-Generator/DeviceTreeGenerator_Launcher.sh ~/Desktop/DeviceTreeGenerator_Launcher.sh
4152

4253
## SuperR Rom Kitchen Installer & Setup
54+
echo " "
4355
echo " Install & Setup SuperR Rom Kitchen"
56+
echo " "
4457
cd ~/Android
4558
git clone https://github.com/PizzaG/SuperR-RomKitchen.git
4659
cd ~/Android/SuperR-RomKitchen
@@ -51,18 +64,22 @@ sudo mv ~/Android/SuperR-RomKitchen ~/Android/SuperR_RomKitchen
5164
cd ~/Android/SuperR_RomKitchen
5265
sudo mv ~/Android/SuperR_RomKitchen/SuperR_Launcher.sh ~/Desktop/SuperR_Launcher.sh
5366

54-
## Install apt Packages & Symlink Python
55-
echo " Install apt Packages & Symlink Python"
67+
## Install apt Packages
68+
echo " "
69+
echo " Install apt Packages"
70+
echo " "
5671
sudo apt install git
5772
sudo apt install android-tools-adb android-tools-fastboot
5873
sudo apt install cpio
5974
sudo apt install git aria2 -y
6075
sudo apt install python2
6176
sudo apt install python3
62-
sudo ln /usr/bin/python3 /usr/bin/python
77+
sudo apt-get install openjdk-8-jdk
6378

6479
## Install Remaining Depends & Extras
80+
echo " "
6581
echo " Install Remaining Depends & Extras"
82+
echo " "
6683
cd ~/Android/Build_Env_Setup
6784
sudo git clone https://github.com/PizzaG/Build-Env-Setup-Scripts
6885
cd Build-Env-Setup-Scripts
@@ -72,12 +89,27 @@ bash setup/ccache.sh
7289
bash setup/git.sh
7390
bash setup/deb-setup.sh
7491
bash setup/make.sh
92+
cd Build-Env-Setup-Scripts/setup
93+
sudo mv ~/Android/Build_Env_Setup/Build-Env-Setup-Scripts/setup/ChangeJavaVersion.sh ~/Desktop/ChangeJavaVersion.sh
94+
sudo mv ~/Android/Build_Env_Setup/Build-Env-Setup-Scripts/setup/ChangePythonVersion.sh ~/Desktop/ChangePythonVersion.sh
95+
96+
## Python Fixup
97+
echo " "
98+
echo " Fixing Up Python 2.7 & 3.8"
99+
echo " "
100+
sudo ln /usr/bin/python3 /usr/bin/python
101+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
102+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2
75103

76104
## Cleanup
105+
echo " "
77106
echo " Taking Out The Trash & Tidying Up"
107+
echo " "
78108
sudo rm -rf ~/Android/Build_Env_Setup
79109
sudo rm -rf ~/Android/Sdk
80110

111+
echo " "
81112
echo "" Installation Script All Done, Enjoy""
82-
113+
echo " "
114+
echo " PRESS ENTER TO EXIT"
83115
read

0 commit comments

Comments
 (0)