Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Script for Gitkraken on Fedora 27 + Launcher Icon
#!/bin/bash
# Enter /opt folder (common folder for user installed programs)
# This script assumes you have proper permissions on /opt
cd /home/mengxin/Applications
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# Extract the Kraken into /opt directory
tar -xvzf gitkraken-amd64.tar.gz
# Remove tar.gz
rm gitkraken-amd64.tar.gz
# Add gitkraken to PATH
echo "export PATH=\$PATH:/home/mengxin/Applications/gitkraken" >> ~/.bashrc
source ~/.bashrc
# Download gitkraken launcher icon
wget http://img.informer.com/icons_mac/png/128/422/422255.png
mv 422255.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=/home/mengxin/Applications/gitkraken/gitkraken
Icon=/home/mengxin/Applications/gitkraken/icon.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;Development;" | sudo tee -a /usr/share/applications/gitkraken.desktop >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment