-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathinstall.sh
More file actions
73 lines (60 loc) · 1.92 KB
/
install.sh
File metadata and controls
73 lines (60 loc) · 1.92 KB
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
#!/bin/bash
echo "Welcome to the Arch-Store installation program!"
echo "What do you want to do?"
echo "1) Install/Update Arch-Store"
echo "2) Uninstall Arch-Store"
read -p "Select an option [1/2/5]: " action
read -p "Select an option [1/2/5]: " action
if [[ "$action" == "1" ]]; then
mkdir arch-store-install
cd arch-store-install
PYTHON_PATH=$(which python3)
echo
echo
read -p "Install the stable version? (y/n): " choice
if [[ "$choice" =~ ^[Yy]$ ]]; then
echo "Installing Arch-Store stable..."
sudo pacman -Rns arch-store-git
sudo pacman -Rns arch-store-dev-git
wget https://raw.githubusercontent.com/samuobe/Arch-Store/main/PKGBUILD/PKGBUILD
makepkg -si
rm PKGBUILD
echo "FINISHED!"
else
echo "Installing Arch-Store from main branch (beta)..."
sudo pacman -Rns arch-store-dev-git
sudo pacman -Rns arch-store
wget https://raw.githubusercontent.com/samuobe/Arch-Store/main/PKGBUILD/PKGBUILD-git
mv PKGBUILD-git PKGBUILD
makepkg -si
rm PKGBUILD
echo "FINISHED!"
fi
sudo rm /usr/share/arch-store/AUR
cd ..
rm -rf arch-store-install
elif [[ "$action" == "2" ]]; then
echo
echo
echo "Uninstalling Arch-Store..."
sudo pacman -Rns arch-store
sudo pacman -Rns arch-store-git
sudo pacman -Rns arch-store-dev-git
echo "FINISHED!"
elif [[ "$action" == "5" ]]; then
mkdir arch-store-install
cd arch-store-install
PYTHON_PATH=$(which python3)
echo "Installing Arch-Store DEV branch..."
sudo pacman -Rns arch-store
sudo pacman -Rns arch-store-git
wget https://raw.githubusercontent.com/samuobe/Arch-Store/main/PKGBUILD/PKGBUILD-dev
mv PKGBUILD-dev PKGBUILD
makepkg -si
rm PKGBUILD
rm /usr/share/arch-store/AUR
echo "FINISHED!"
cd ..
sudo rm -rf arch-store-install
fi
rm -- "$0"