forked from AGENT404TRD/BOXVIDRA-PROJECT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
273 lines (249 loc) · 9.73 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
#!/bin/bash
pkg install root-repo -y
echo -e "\e[36m[+] Installing Required packages\e[0m"termux-setup-storage
pkg update -y
pkg upgrade -y
pkg install wget
pkg install git -y
pkg install hashdeep -y
pkg install x11-repo
clear
echo -e "\e[33m[i] Setting up storage permissions..\e[0m"
yes | termux-setup-storage &>/dev/null
sleep 2
clear
while true; do
if [ -d ~/storage/shared ]; then
break
else
echo -e "\e[31m[ERR] Storage permission denied\e[0m"
fi
done
clear
sleep 2
echo -e "\e[36m[+] Installing Termux-am\e[0m"
pkg install termux-am -y &>/dev/null
echo -e "\e[32m[✓] Termux-am Installed Successfully\e[0m"
echo -e "\n"
clear
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
else
return 1
fi
fi
INSTALL_WOW64=0
echo "Select an option"
echo "1) Install boxvidra with box86 build (6 June)"
echo "2) Install boxvidra with wow64 build (Complete version)"
echo ""
echo -n "Selected number: "
read i
case "$i" in
1)
echo -e "\e[36m[+] Installing Boxvidra Box86 build\e[0m"
wget -q --show-progress -O /data/data/com.termux/files/usr/glibc.box86.tar.xz https://github.com/AGENT404TRD/BOXVIDRA-EMULATOR/releases/download/Glibc/glibc.box86.tar.xz
sleep 2
echo -e "\e[33m[i] Extracting Box86 build glibc...\e[0m"
tar -xf /data/data/com.termux/files/usr/glibc.box86.tar.xz -C /data/data/com.termux/files/usr/
cp /data/data/com.termux/files/usr/glibc/opt/scripts/boxvidra /data/data/com.termux/files/usr/bin
cp /data/data/com.termux/files/usr/glibc/opt/scripts/vidra /data/data/com.termux/files/usr/bin
chmod +x /data/data/com.termux/files/usr/glibc/opt/scripts/*
chmod 777 /data/data/com.termux/files/usr/bin/boxvidra
chmod 777 /data/data/com.termux/files/usr/bin/boxvidra
rm /data/data/com.termux/files/usr/glibc.box86.tar.xz
echo -e "\n"
echo -e "\e[32m[✓] Boxvidra Box86 build Installed Successfully.\e[0m"
;;
2)
echo -e "\e[36m[+] Installing Boxvidra Wow64 build\e[0m"
wget -q --show-progress -O /data/data/com.termux/files/usr/glibc.wow64.tar.xz https://github.com/AGENT404TRD/BOXVIDRA-EMULATOR/releases/download/Glibc/glibc.wow64.tar.xz
sleep 2
echo -e "\e[33m[i] Extracting Wow64 build glibc...\e[0m"
tar -xf /data/data/com.termux/files/usr/glibc.wow64.tar.xz -C /data/data/com.termux/files/usr/
cp /data/data/com.termux/files/usr/glibc/opt/scripts/boxvidra /data/data/com.termux/files/usr/bin
chmod +x /data/data/com.termux/files/usr/glibc/opt/scripts/*
chmod 777 /data/data/com.termux/files/usr/bin/boxvidra
rm /data/data/com.termux/files/usr/glibc.wow64.tar.xz
echo -e "\n"
echo -e "\e[32m[✓] Boxvidra Wow64 build Installed Successfully.\e[0m"
;;
*)
return 1
;;
esac
clear
sleep 2
echo -e "\e[32m[+] Installing Termux Packages...\e[0m"
apt-get clean -y
apt-get update -y
apt-get upgrade -y
pkg install wget -y
pkg install root-repo -y
apt-get -y --with-new-pkgs -o Dpkg::Options::="--force-confdef" upgrade
echo -e "\e[32m[✓] Termux packages Installed Successfully.\e[0m"
echo -e "\n"
clear
echo -e "\e[36m[+] Installing Termux X11 packages...\e[0m"
pkg install x11-repo -y &>/dev/null
pkg install termux-x11-nightly -y &>/dev/null
echo -e "\e[32m[✓] Termux X11 Packages Installed Successfully.\e[0m"
echo -e "\n"
echo -e "\e[36m[+] Installing Boxvidra Emulator Packages...\e[0m"
pkg install tur-repo -y &>/dev/null
pkg install xwayland -y &>/dev/null
pkg install xorg-xrandr -y &>/dev/null
pkg install p7zip -y &>/dev/null
pkg install patchelf -y &>/dev/null
pkg install ncurses-utils -y &>/dev/null
pkg install hashdeep -y &>/dev/null
pkg install mesa-zink virglrenderer-mesa-zink vulkan-loader-android virglrenderer-android -y &>/dev/null
apt install android-tools -y &>/dev/null
pkg install python-tkinter -y &>/dev/null
echo -e "\e[32m[✓] Boxvidra Emulator Packages Installed Successfully.\e[0m"
echo -e "\n"
sleep 3
clear
echo -e "\e[36m[+] Installing Xfce4, Plugins and Tools\e[0m"
echo -e "\n"
pkg install xfce4 -y
apt install xfce4-whiskermenu-plugin -y
apt install xfce4-screenshooter -y
apt install xfce4-taskmanager -y
apt install xfce4-docklike-plugin -y
apt install matchbox-keyboard -y
echo -e "\e[32m[✓] Xfce4, Plugins, Tools, Packages, Installed Successfully.\e[0m"
echo -e "\n"
sleep 3
clear
echo -e "\e[36m[+] Installing Boxvidra Emulator Programs, Browsers, Etc..\e[0m"
echo -e "\n"
pkg install gimp -y
pkg install mpv -y
pkg install firefox -y
pkg install vlc -y
pkg install vlc-qt -y
pkg install abiword -y
apt install ristretto -y
echo -e "\n"
echo -e "\e[32m[✓] Boxvidra Emulator Programs, Browsers, Other Applications Installed Successfully.\e[0m"
clear
sleep 3
# CREATE DESKTOP FILE
if [ ! -d ~/Desktop ]; then
mkdir -p ~/Desktop
fi
echo "Select a Theme to Download/Install"
echo "1) Windows 10 Light Theme"
echo "2) Windows 10 Dark Theme"
echo "3) Windows 10 Red, Gaming Theme"
echo "4) Windows 10 Purple, Space Theme"
echo ""
echo -n "Selected number : "
read i
case "$i" in
1)
echo -n "Installing Windows 10 theme (Light) ..."
wget -q --show-progress -O Windows.10.Light.tar.xz https://github.com/AGENT404TRD/BOXVIDRA-EMULATOR/releases/download/Themes/Windows.10.Light.tar.xz
tar -xf Windows.10.Light.tar.xz
cd 'Windows 10 Light'
cp -r .icons /data/data/com.termux/files/home/
cp -r .themes /data/data/com.termux/files/home/
cp -r APPLICATIONS /data/data/com.termux/files/home
cp .config.tar.xz /data/data/com.termux/files/home
tar -xf /data/data/com.termux/files/home/.config.tar.xz -C /data/data/com.termux/files/home
cp Windows-10-master.zip /data/data/com.termux/files/usr/share/icons
unzip /data/data/com.termux/files/usr/share/icons/Windows-10-master.zip -d /data/data/com.termux/files/usr/share/icons
cp -r WALLPAPERS /data/data/com.termux/files/home
cp -r BOXVIDRA-CFG /data/data/com.termux/files/home
cp PROGRAMS/* /data/data/com.termux/files/home/Desktop
rm /data/data/com.termux/files/home/.config.tar.xz
cd 'PROGRAMS'
cd ..
rm -r 'Windows 10 Light'
rm Windows.10.Light.tar.xz
clear
echo -n "Windows 10 theme (Light) Installed Successfully"
sleep 3
;;
2)
echo -n "Installing Windows 10 theme (Dark) ..."
wget -q --show-progress -O Windows.10.Dark.tar.xz https://github.com/AGENT404TRD/BOXVIDRA-EMULATOR/releases/download/Themes/Windows.10.Dark.tar.xz
tar -xf Windows.10.Dark.tar.xz
cd 'Windows 10 Dark'
cp -r .icons /data/data/com.termux/files/home/
cp -r .themes /data/data/com.termux/files/home/
cp -r APPLICATIONS /data/data/com.termux/files/home
cp .config.tar.xz /data/data/com.termux/files/home
tar -xf /data/data/com.termux/files/home/.config.tar.xz -C /data/data/com.termux/files/home
cp Windows-10-master.zip /data/data/com.termux/files/usr/share/icons
unzip /data/data/com.termux/files/usr/share/icons/Windows-10-master.zip -d /data/data/com.termux/files/usr/share/icons
cp -r WALLPAPERS /data/data/com.termux/files/home
cp -r BOXVIDRA-CFG /data/data/com.termux/files/home
cp PROGRAMS/* /data/data/com.termux/files/home/Desktop
rm /data/data/com.termux/files/home/.config.tar.xz
cd ..
rm -r 'Windows 10 Dark'
rm Windows.10.Dark.tar.xz
clear
echo -n "Windows 10 theme (Dark) Installed Successfully"
sleep 3
;;
3)
echo -n "Installing Windows 10 theme (Red, Gaming) ..."
wget -q --show-progress -O Windows.10.Red.tar.xz https://github.com/AGENT404TRD/BOXVIDRA-EMULATOR/releases/download/Themes/Windows.10.Red.tar.xz
tar -xf Windows.10.Red.tar.xz
cd 'Windows 10 Red'
cp -r .icons /data/data/com.termux/files/home/
cp -r .themes /data/data/com.termux/files/home/
cp -r APPLICATIONS /data/data/com.termux/files/home
cp .config.tar.xz /data/data/com.termux/files/home
tar -xf /data/data/com.termux/files/home/.config.tar.xz -C /data/data/com.termux/files/home
cp Windows-10-master.zip /data/data/com.termux/files/usr/share/icons
unzip /data/data/com.termux/files/usr/share/icons/Windows-10-master.zip -d /data/data/com.termux/files/usr/share/icons
cp -r WALLPAPERS /data/data/com.termux/files/home
cp -r BOXVIDRA-CFG /data/data/com.termux/files/home
cp PROGRAMS/* /data/data/com.termux/files/home/Desktop
rm /data/data/com.termux/files/home/.config.tar.xz
cd ..
rm -r 'Windows 10 Red'
rm Windows.10.Red.tar.xz
clear
echo -n "Windows 10 theme (Red, Gaming) Installed Successfully"
sleep 3
;;
4)
echo -n "Installing Windows 10 theme (Purple, Space) ..."
wget -q --show-progress -O Windows.10.Purple.tar.xz https://github.com/AGENT404TRD/BOXVIDRA-EMULATOR/releases/download/Themes/Windows.10.Purple.tar.xz
tar -xf Windows.10.Purple.tar.xz
cd 'Windows 10 Purple'
cp -r .icons /data/data/com.termux/files/home/
cp -r .themes /data/data/com.termux/files/home/
cp -r APPLICATIONS /data/data/com.termux/files/home
cp .config.tar.xz /data/data/com.termux/files/home
tar -xf /data/data/com.termux/files/home/.config.tar.xz -C /data/data/com.termux/files/home
cp Windows-10-master.zip /data/data/com.termux/files/usr/share/icons
unzip /data/data/com.termux/files/usr/share/icons/Windows-10-master.zip -d /data/data/com.termux/files/usr/share/icons
cp -r WALLPAPERS /data/data/com.termux/files/home
cp -r BOXVIDRA-CFG /data/data/com.termux/files/home
cp PROGRAMS/* /data/data/com.termux/files/home/Desktop
rm /data/data/com.termux/files/home/.config.tar.xz
cd ..
rm -r 'Windows 10 Purple'
rm Windows.10.Purple.tar.xz
clear
echo -n "Windows 10 theme (Purple, Space) Installed Successfully"
sleep 3
;;
*)
echo "Invalid option, please select a valid number."
;;
esac
clear
sleep 2
echo -e "\e[32m[✓] Boxvidra Emulator Installed Successfully.\e[0m"
echo -e "\n"
echo "Type \"boxvidra\" To Start"