-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·41 lines (35 loc) · 964 Bytes
/
install
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
#!/usr/bin/bash
# coding: utf-8
INSTALL_ROUTE=/usr/share/jad-dashlane-gui
BASH_PATH=/usr/bin/dashlane-jad-gui
CMD_NAME=dashlane-jad-gui
GITREPO=https://github.com/asosnovsky/Dashlane-jad-GUI.git
TMP_FOLDER=$(mktemp -d)
git clone $GITREPO $TMP_FOLDER
echo $TMP_FOLDER
cd $TMP_FOLDER
echo "Preparing files..."
sudo cp -r src $INSTALL_ROUTE
echo "cd $INSTALL_ROUTE
./dashlane" > $CMD_NAME
echo "[Desktop Entry]
Version=1.0
Terminal=false
Icon=$BASH_PATH/dashlane.png
Type=Application
Categories=Other;
Exec=$CMD_NAME
Name=Dashlane Password Manager
GenericName=Dashlane
StartupNotify=true
Comment=Your password manager and digital wallet
Path=
" > dashlane.desktop
echo "Storing commands..."
sudo cp $CMD_NAME $BASH_PATH
sudo chmod 755 $BASH_PATH
sudo chmod +x $BASH_PATH
echo "Creating desktop application..."
sudo cp dashlane.desktop /usr/share/applications/dashlane.desktop
sudo chmod 644 /usr/share/applications/dashlane.desktop
echo "Installation Complete"