-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin_install.sh
executable file
·47 lines (37 loc) · 1.53 KB
/
plugin_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
#!/bin/sh
echo "Updating System"
sudo apt-get update
sudo apt-get upgrade
echo "Install Dependencies"
sudo apt-get install python-all-dev python3-all-dev
sudo apt-get install python3-pip
sudo apt-get install swig
sudo apt-get install portaudio19-dev
sudo pip3 install pyaudio
sudo pip3 install SpeechRecognition
sudo pip3 install pocketsphinx
echo "Making Directories"
sudo mkdir ~/.local/share/
sudo mkdir ~/.local/share/gedit/
sudo mkdir ~/.local/share/gedit/plugins/
sudo mkdir ~/.local/share/gedit/plugins/dictonator/
echo "Moving Files"
cp dictonator.plugin ~/.local/share/gedit/plugins/
echo "Moving Python Files"
cp dictonator/__init__.py ~/.local/share/gedit/plugins/dictonator/
cp dictonator/recogspeech.py ~/.local/share/gedit/plugins/dictonator/
cp dictonator/actionhandler.py ~/.local/share/gedit/plugins/dictonator/
cp dictonator/setlog.py ~/.local/share/gedit/plugins/dictonator/
cp dictonator/statesacts.py ~/.local/share/gedit/plugins/dictonator/
cp dictonator/saveasdialog.py ~/.local/share/gedit/plugins/dictonator/
cp dictonator/settings.py ~/.local/share/gedit/plugins/dictonator/
cp dictonator/text2num.py ~/.local/share/gedit/plugins/dictonator/
echo "Moving UI Files"
cp dictonator/widget.glade ~/.local/share/gedit/plugins/dictonator/
cp dictonator/configbox.glade ~/.local/share/gedit/plugins/dictonator/
echo "Moving Icon"
sudo cp dictonator.svg /usr/share/icons/hicolor/scalable/apps/
sudo gtk-update-icon-cache-3.0 /usr/share/icons/hicolor/
echo "Fixing permissions"
sudo chmod -R 777 ~/.local/share/gedit/plugins/
echo "Finished"