-
Notifications
You must be signed in to change notification settings - Fork 1
/
installerAsRoot.sh
68 lines (56 loc) · 1.62 KB
/
installerAsRoot.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
66
67
68
RELEASEVER="0.7.1"
echo "plainInstaller $RELEASEVER as Root"
echo "==> Installing plainDE into your system."
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
if [ ! "$(whoami)" = "root" ]; then
echo "Run it as root."
exit 1
fi
# Removing old files
rm -rf /usr/share/plainDE
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 & copying base
mkdir /usr/share/plainDE
cp -R plainBase/usr/* /usr/
chmod 755 /usr/share/plainDE/tools/*
# Copying artwork
cp -R plainArtwork/flags /usr/share/
mkdir /usr/share/plainDE/icons
cp -R plainArtwork/icons /usr/share/plainDE
# Compiling plainPanel
cd plainPanel
git checkout $RELEASEVER
qmake
make
install -m 0755 plainPanel /usr/bin/plainPanel
# Compiling plainAbout
cd plainAbout
git checkout $RELEASEVER
qmake
make
install -m 0755 plainAbout /usr/bin/plainAbout
cd ..
# Compiling plainControlCenter
cd plainControlCenter
git checkout $RELEASEVER
qmake
make
install -m 0755 plainControlCenter /usr/bin/plainControlCenter
cd ..
cd ..
# Removing temprorary files
rm -rf plainDE-tmp-src
echo "Installation successful! Now add 'plainPanel' in autostart of your window manager and start exploring new DE!"