35 lines
899 B
Bash
35 lines
899 B
Bash
#!/bin/bash
|
|
|
|
cd /opt
|
|
|
|
# Get Latest GitKraken
|
|
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
|
|
|
|
# Extract
|
|
tar -xvzf gitkraken-amd64.tar.gz
|
|
|
|
# Remove tar.gz
|
|
rm -f gitkraken-amd64.tar.gz
|
|
|
|
# Add gitkraken to PATH
|
|
echo "export PATH=\$PATH:/opt/gitkraken" >> ~/.bashrc
|
|
source ~/.bashrc
|
|
|
|
# Download gitkraken launcher icon
|
|
wget https://git.spectre5.com/adamcruz/install-gitkraken/raw/commit/e829f20289e0761e8b98bd5d86d36a4b4b0e24d0/gitkraken_logo.png
|
|
mv gitkraken_logo.png ./gitkraken/icon.png
|
|
|
|
# Create desktop entry
|
|
sudo touch /usr/share/applications/gitkraken.desktop
|
|
|
|
# copy the following contents into gitkraken.desktop file:
|
|
echo "
|
|
[Desktop Entry]
|
|
Name=GitKraken
|
|
Comment=Git Flow
|
|
Exec=/opt/gitkraken/gitkraken
|
|
Icon=/opt/gitkraken/icon.png
|
|
Terminal=false
|
|
Type=Application
|
|
Encoding=UTF-8
|
|
Categories=Utility;Development;" | sudo tee -a /usr/share/applications/gitkraken.desktop >/dev/null |