forked from airidosas252/glibc-wine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
29 lines (28 loc) · 1.25 KB
/
install.sh
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
#/bin/bash
clear
echo "Welcome to glibc-wine installer"
echo "Before we proceed, we need to configure your internal storage to be accessible"
sleep 2
echo "Updating termux-am and all dependencies"
apt update -y && apt install termux-am -y
pkg install x11-repo -y
apt upgrade -y
pkg install pulseaudio zenity termux-x11-nightly wget xorg-xrandr -y
echo "Grant access to your internal storage"
termux-setup-storage
sleep 5
echo "Downloading glibc-wine-prefix and it's files..."
wget --progress=bar:force -P $PREFIX/tmp https://github.com/airidosas252/glibc-wine/releases/download/glibc/glibc-wine-prefix.tar.xz
tar -xf $PREFIX/tmp/glibc-wine-prefix.tar.xz -C $PREFIX/
wget --progress=bar:force -P $PREFIX/tmp https://github.com/airidosas252/glibc-wine/releases/download/glibc/glibc-wine-libraries.tar.xz
tar -xf $PREFIX/tmp/glibc-wine-libraries.tar.xz -C $PREFIX/
echo "Downloading Wine 9.1..."
wget --progress=bar:force -P $PREFIX/tmp https://github.com/airidosas252/glibc-wine/releases/download/wine/wine-9.1-wow64-esync.tar.xz
tar -xf $PREFIX/tmp/wine-9.1-wow64-esync.tar.xz -C $PREFIX/glibc/opt/
rm -r $PREFIX/tmp/*
clear
echo "Setting up pacman for updater to work..."
pkg install pacman -y && pacman-key --init & pacman-key --populate
echo "Done"
sleep 2
glibc-wine --install