Skip to content

Instantly share code, notes, and snippets.

@themakunga
Created November 30, 2018 15:12
Show Gist options
  • Save themakunga/d98701765ef1c0f799e9e052f155a209 to your computer and use it in GitHub Desktop.
Save themakunga/d98701765ef1c0f799e9e052f155a209 to your computer and use it in GitHub Desktop.
#!/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!"
@themakunga
Copy link
Author

wget` https://gist.githubusercontent.com/TheYakuza/d98701765ef1c0f799e9e052f155a209/raw/1f93b0190e082148e25639f573e291161b9f7603/postman.sh
chmod a+x postman.sh
./postman.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment