forked from ThoughtfulDev/EagleEye
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·67 lines (55 loc) · 2.37 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
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
#!/bin/bash
echo "
███████╗ █████╗ ██████╗ ██╗ ███████╗ ███████╗██╗ ██╗███████╗
██╔════╝██╔══██╗██╔════╝ ██║ ██╔════╝ ██╔════╝╚██╗ ██╔╝██╔════╝
█████╗ ███████║██║ ███╗██║ █████╗ █████╗ ╚████╔╝ █████╗
██╔══╝ ██╔══██║██║ ██║██║ ██╔══╝ ██╔══╝ ╚██╔╝ ██╔══╝
███████╗██║ ██║╚██████╔╝███████╗███████╗ ███████╗ ██║ ███████╗
╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝ ╚══════╝ ╚═╝ ╚══════╝
Install Script
"
debian_install() {
sudo apt update && sudo apt upgrade -y
sudo apt install git python3 python3-pip python3-dev
sudo apt install libgtk-3-dev libboost-all-dev build-essential cmake libffi-dev
}
arch_install_package() {
package=$1
if sudo pacman -Qi $package > /dev/null ; then
echo "$package is already installed"
else
echo "Installing $package"
sudo pacman -S $package
fi
}
arch_install() {
sudo pacman -Syu
arch_install_package "git"
arch_install_package "python"
arch_install_package "python-pip"
arch_install_package "gtk3"
arch_install_package "boost"
arch_install_package "cmake"
arch_install_package "libffi"
}
fedora_install() {
sudo yum update
}
python_setup() {
git clone https://github.com/ThoughtfulDev/EagleEye
cd EagleEye && sudo pip3 install -r requirements.txt
sudo pip3 install --upgrade beautifulsoup4 html5lib spry
echo "Installation done"
echo "Now download the Geckodriver"
}
if [ "$(grep -Ei 'debian|ubuntu|mint' /etc/*release)" ]; then
debian_install
python_setup
fi
if [ "$(grep -Ei 'arch' /etc/*release)" ]; then
arch_install
python_setup
fi
if [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then
echo "yum is currently not supported."
fi