-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
49 lines (49 loc) · 1.43 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
#! /bin/bash
echo "Make sure you are using Ubuntu >=16.10..."
read -p "Are you sure that you are using Ubuntu 16.10 or later? [y/n]: " input;
if [ $input != 'y' ];
then exit;
fi
sudo apt --assume-yes install libsdl2-2.0-0
sudo apt --assume-yes install libsdl2-image-2.0-0
sudo apt --assume-yes install libsdl2-ttf-2.0-0
mkdir ~/.peach/
cd ~/.peach/
wget -O ./master.zip https://github.com/RonOSLinux/Peach/archive/master.zip
unzip ./master.zip
mv ./Peach-master/* ./
chmod +x ./bin/apps
chmod +x ./bin/desktop
chmod +x ./bin/panel
chmod +x ./bin/peach
chmod +x ./bin/restart
chmod +x ./bin/settings
chmod +x ./bin/shutdown
chmod +x ./bin/software-action
chmod +x ./bin/software-explorer
chmod +x ./bin/tutorial
chmod +x ./bin/upgrade
chmod +x ./bin/upgrade-action
chmod +x ./bin/update-sources
sudo mv ./bin/update-sources /bin/
rm -r ./Peach-master
rm -r ./src
rm -r ./inc
rm ./build.sh
rm ./install.sh
rm ./master.zip
read -p "Do you want to create an autostart? [y/n]: " input
if [ $input != 'y' ];
then exit;
fi
cd ~/.config/autostart/
echo "[Desktop Entry]" > ./Peach.desktop
echo "Encoding=UTF-8" >> ./Peach.desktop
echo "Version=0.0.0" >> ./Peach.desktop
echo "Type=Application" >> ./Peach.desktop
echo "Name=Peach" >> ./Peach.desktop
echo "Comment=" >> ./Peach.desktop
echo "Exec=sh -c \"~/.peach/bin/peach\"" >> ./Peach.desktop
echo "StartupNotify=false" >> ./Peach.desktop
echo "Terminal=false" >> ./Peach.desktop
echo "Hidden=true" >> ./Peach.desktop