-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (24 loc) · 968 Bytes
/
install.sh
File metadata and controls
executable file
·29 lines (24 loc) · 968 Bytes
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
PKGVER=0.1.4
PKGOLD=0.1.3
# prepare
if [ -d /opt/boostchanger-v$PKGOLD]; then
rm -r /opt/boostchanger-v$PKGOLD
rm /usr/bin/boostchanger-py
rm /usr/share/applications/boostchanger-py.desktop
rm /usr/share/pixmaps/boostchanger-py.png
rm /home/$SUDO_USER/.config/autostart
echo "The old version of Boost Changer has been deleted"
fi
# install plyer package for notifications
pip install plyer
# package
cp -r src /opt
mv /opt/src /opt/boostchanger-v$PKGVER
install -Dm755 build/boostchanger-py.sh /usr/bin/boostchanger-py
install -Dm 644 build/boostchanger-py.desktop /usr/share/applications/boostchanger-py.desktop
install -Dm 644 build/boostchanger-py.png /usr/share/pixmaps/boostchanger-py.png
# add boostchanger to autostart
cp build/boostchanger-py.desktop /home/$SUDO_USER/.config/autostart
chown $SUDO_USER:$SUDO_USER /home/$SUDO_USER/.config/autostart/boostchanger-py.desktop
echo "Boost Changer is successfully installed"