Created
November 30, 2018 15:12
-
-
Save themakunga/d98701765ef1c0f799e9e052f155a209 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
optdir=/opt/Postman | |
cd /tmp || exit | |
echo "Descargando la ultima version ..." | |
wget https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz | |
tar -xzf postman.tar.gz | |
rm postman.tar.gz | |
echo "Instalando en opt..." | |
if [ -d "~/Postman" ];then | |
sudo m -rf $optdir | |
fi | |
sudo mv Postman $optdir | |
echo "Creando Link Simbolicos..." | |
if [ -L "/usr/bin/postman" ];then | |
sudo rm -f /usr/bin/postman | |
fi | |
sudo ln -s $optdir/Postman /usr/bin/postman | |
echo "Creando el icono para escritorio" | |
touch ~/.local/share/applications/Postman.desktop | |
cat <<EOT >> ~/.local/share/applications/Postman.desktop | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman | |
Exec=postman | |
Icon=$optdir/app/resources/app/assets/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
EOT | |
update-desktop-database | |
echo "Installation completed successfully." | |
echo "You can use Postman!" |
Author
themakunga
commented
Nov 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment