Last active
February 19, 2020 11:28
-
-
Save newbie78/9111830c96ea70a71830677c78fea7cb to your computer and use it in GitHub Desktop.
postman install bash script debian - ubuntu like
This file contains 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
#!/usr/bin/env bash | |
echo "Downloading Postman ..." | |
wget -q https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
echo "Installing to current user folder ..." | |
if [ -d "~/Postman" ];then | |
rm -rf ~/Postman | |
fi | |
tar -xzf postman.tar.gz -C ~/Postman | |
rm postman.tar.gz | |
echo "Creating symbolic link to user folder bin ..." | |
if [ -L "~/bin/postman" ];then | |
rm -f ~/bin/postman | |
fi | |
ln -s ~/Postman/Postman/Postman ~/bin/postman | |
echo "Creating ico ..." | |
if [ -L "~/.local/share/applications/postman.desktop" ];then | |
rm -f ~/.local/share/applications/postman.desktop | |
fi | |
cat > ~/.local/share/applications/postman.desktop <<EOL | |
[Desktop Entry] | |
Name=Postman | |
Exec=postman | |
Icon=/home/<USERNAME>/Postman/Postman/app/resources/app/assets/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
EOL | |
echo "Installation completed successfully." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
change the to your own