Skip to content

Instantly share code, notes, and snippets.

@malutanpetronel
Forked from aviskase/Postman.desktop
Created March 18, 2019 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malutanpetronel/92a0f45383e63f20abc51358437a1b13 to your computer and use it in GitHub Desktop.
Save malutanpetronel/92a0f45383e63f20abc51358437a1b13 to your computer and use it in GitHub Desktop.
Install Postman

WARNING: this gist is only for installation and should not be used to update Postman. Please use auto-update feature. WARNING: script was updated to use ~ instead of /opt. Make sure that you have write permissions for location, because otherwise it can cause some problems

How to:

  1. Run install-postman.sh . Make sure that it has execute permissions =)
chmod +x install-postman.sh
./install-postman.sh`
  1. Create Postman.desktop file, so that you could see it the laucher.
touch ~/.local/share/applications/Postman.desktop

And copy-paste data from Postman.desktop . Don't forget to replace USERNAME with your user for Icon: line (it can't expand ~ :( )

#!/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 "~/Postman" ];then
rm -rf ~/Postman
fi
mv Postman ~/Postman
echo "Creating symbolic link..."
if [ -L "/usr/bin/postman" ];then
sudo rm -f /usr/bin/postman
fi
sudo ln -s ~/Postman/Postman /usr/bin/postman
echo "Installation completed successfully."
echo "You can use Postman!"
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment