Created
February 14, 2019 12:16
-
-
Save jgaydos/4a47e0d4e8b10bf9c710603bebc93152 to your computer and use it in GitHub Desktop.
Postman Install/Update in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download latest release | |
wget https://dl.pstmn.io/download/latest/linux64 -O Postman.tar.gz | |
sudo rm -rf /opt/Postman/ | |
sudo tar xf Postman.tar.gz -C /opt/ | |
rm Postman.tar.gz | |
[ -e /usr/bin/postman ] && sudo rm /usr/bin/postman | |
sudo ln -sf /opt/Postman/app/Postman /usr/bin/postman | |
# Create launcher icon | |
[ -e ~/.local/share/applications/postman.desktop ] && rm ~/.local/share/applications/postman.desktop | |
bash -c 'cat <<EOT >>~/.local/share/applications/postman.desktop | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman | |
Exec=/usr/bin/postman | |
Icon=/opt/Postman/app/resources/app/assets/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
EOT | |
' | |
echo Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment