Skip to content

Instantly share code, notes, and snippets.

@tsolar
Forked from pierremonico/Postman.desktop
Created June 1, 2017 16:27
Show Gist options
  • Select an option

  • Save tsolar/e4ff4ced4fc7fd2d8e010770424e87f6 to your computer and use it in GitHub Desktop.

Select an option

Save tsolar/e4ff4ced4fc7fd2d8e010770424e87f6 to your computer and use it in GitHub Desktop.

Revisions

  1. @pierremonico pierremonico revised this gist Apr 10, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions install-postman.sh
    Original file line number Diff line number Diff line change
    @@ -17,5 +17,11 @@ if [ -L "/usr/bin/postman" ];then
    fi
    sudo ln -s /opt/Postman/Postman /usr/bin/postman

    echo "Creating .desktop file..."
    if [ -e "/usr/share/applications/Postman.desktop" ];then
    sudo rm /usr/share/applications/Postman.desktop
    fi
    sudo mv Postman.desktop /usr/share/applications/Postman.desktop

    echo "Installation completed successfully."
    echo "You can use Postman!"
  2. @aviskase aviskase revised this gist Oct 27, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Postman.desktop
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    Encoding=UTF-8
    Name=Postman
    Exec=postman
    Icon=postman
    Icon=/opt/Postman/resources/app/assets/icon.png
    Terminal=false
    Type=Application
    Categories=Development;
  3. @aviskase aviskase created this gist Oct 27, 2016.
    8 changes: 8 additions & 0 deletions Postman.desktop
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    [Desktop Entry]
    Encoding=UTF-8
    Name=Postman
    Exec=postman
    Icon=postman
    Terminal=false
    Type=Application
    Categories=Development;
    21 changes: 21 additions & 0 deletions install-postman.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/bin/bash
    cd /tmp || exit
    echo "Downloading Postman ..."
    wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
    tar -xzf postman.tar.gz
    rm postman.tar.gz

    echo "Installing to opt..."
    if [ -d "/opt/Postman" ];then
    sudo rm -rf /opt/Postman
    fi
    sudo mv Postman /opt/Postman

    echo "Creating symbolic link..."
    if [ -L "/usr/bin/postman" ];then
    sudo rm -f /usr/bin/postman
    fi
    sudo ln -s /opt/Postman/Postman /usr/bin/postman

    echo "Installation completed successfully."
    echo "You can use Postman!"