Skip to content

Instantly share code, notes, and snippets.

@hedcler
Forked from aelkz/[FEDORA] gitkraken
Last active June 25, 2017 20:03
Show Gist options
  • Save hedcler/a1558371ae602982c7fb992368730c69 to your computer and use it in GitHub Desktop.
Save hedcler/a1558371ae602982c7fb992368730c69 to your computer and use it in GitHub Desktop.
How to install gitkraken on Fedora 25 + launcher icon
#!/bin/bash
# Run using: curl -L http://bit.ly/2tb13o3 | sudo sh
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
if [ -f /home/$USER/Downloads/gitkraken-amd64.tar.gz ]; then
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz -P /home/$USER/Downloads/
fi
# copy the downloaded file into /opt directory
cp gitkraken-amd64.tar.gz /opt/gitkraken
cd /opt
# Extract the Kraken into /opt directory
tar -xvzf gitkraken-amd64.tar.gz
# Add gitkraken to PATH
echo "export PATH=\$PATH:/opt/gitkraken" >> ~/.bashrc
source ~/.bashrc
# Create gitkraken launcher icon
# download icon here: http://img.informer.com/icons_mac/png/128/422/422255.png
# or here: https://drive.google.com/file/d/0B-3KQ_ohu-RFVkJyS1Zfa2NLSVE/view
cp {your-image}.png /opt/gitkraken/
cd /usr/share/applications
touch gitkraken.desktop
vim gitkraken.desktop
# copy the following contents into gitkraken.desktop file:
[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;
# save it, and voilá!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment