-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstaller.sh
65 lines (55 loc) · 1.69 KB
/
installer.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
RELEASEVER="0.7.1"
echo "plainInstaller $RELEASEVER"
echo "==> Installing plainDE into your system."
echo " Please ensure you are allowed to use sudo"
echo " or run root installer."
echo ":: Press enter to proceed or Ctrl-C to cancel."
read
echo "==> Make sure all dependencies are installed."
echo ":: Press enter to proceed or Ctrl-C to cancel."
read
# Removing old files
sudo rm -rf /usr/share/plainDE
sudo rm -rf /usr/bin/plain{Panel,About,ControlCenter}
# Preventing from mess in current directory :)
mkdir plainDE-tmp-src
cd plainDE-tmp-src
# Cloning all repos
git clone https://github.com/plainDE/plainBase
git clone https://github.com/plainDE/plainPanel
git clone https://github.com/plainDE/plainAbout
git clone https://github.com/plainDE/plainControlCenter
git clone https://github.com/plainDE/plainArtwork
# Creating plainDE directory and copying base files
sudo mkdir /usr/share/plainDE
sudo cp -R plainBase/usr/* /usr/
sudo chmod 755 /usr/share/plainDE/tools/*
# Copying artwork
sudo cp -R plainArtwork/flags /usr/share/
sudo mkdir /usr/share/plainDE/icons
sudo cp -R plainArtwork/icons /usr/share/plainDE/
# Compiling plainPanel
cd plainPanel
git checkout $RELEASEVER
qmake
make
sudo install -m 0755 plainPanel /usr/bin/plainPanel
cd ..
# Compiling plainAbout
cd plainAbout
git checkout $RELEASEVER
qmake
make
sudo install -m 0755 plainAbout /usr/bin/plainAbout
cd ..
# Compiling plainControlCenter
cd plainControlCenter
git checkout $RELEASEVER
qmake
make
sudo install -m 0755 plainControlCenter /usr/bin/plainControlCenter
cd ..
cd ..
# Removing temprorary files
rm -rf plainDE-tmp-src
echo "Installation finished. Now add 'plainPanel' in autostart of your window manager and start exploring new DE!"