-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·41 lines (30 loc) · 815 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·41 lines (30 loc) · 815 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
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
pushd $DIR
pip3 install .
application_filename=braphy.desktop
application_directory=~/.local/share/applications
application_file=$application_directory/$application_filename
cat > $application_file << EOL
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Terminal=false
Exec=$(pwd)/bin/braphy.sh
Icon=$(pwd)/braphy/gui/icons/application_icon.png
Name=braphy
EOL
chmod +x $application_file
application_filename_kill=kill_braphy.desktop
application_kill=$application_directory/$application_filename_kill
cat > $application_kill << EOL
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Terminal=false
Exec=$(pwd)/bin/kill_braphy.sh
Icon=$(pwd)/braphy/gui/icons/application_icon_kill.png
Name=kill braphy
EOL
chmod +x $application_kill
popd