Install POSTMAN in linux 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 | |
# | |
# C: Fahad Ahammed | |
# Purpose: Install POSTMAN in linux Desktop | |
# D: 2022-11-11 14-36 | |
# | |
if [ -z "$1" ] | |
then | |
read -p "Give the install directory:" INSTALL_DIRECTORY | |
else | |
INSTALL_DIRECTORY="$1" | |
fi | |
CURDIR=$(pwd) | |
curl -s https://dl.pstmn.io/download/latest/linux64 --output $INSTALL_DIRECTORY/postman.tar.gz | |
cd $INSTALL_DIRECTORY; | |
tar -zxvf postman.tar.gz | |
chmod a+x -R $INSTALL_DIRECTORY/* | |
POSTMAN_EXEC="$INSTALL_DIRECTORY/Postman/Postman" | |
POSTMAN_ICON="$INSTALL_DIRECTORY/Postman/app/icons/icon_128x128.png" | |
cat <<EOF >>$INSTALL_DIRECTORY/postman.desktop | |
[Desktop Entry] | |
Type=Application | |
Name=Postman | |
Icon=$POSTMAN_ICON | |
Exec="$POSTMAN_EXEC" | |
Comment=Postman Desktop App | |
Categories=Development;Code; | |
EOF | |
ln -s $INSTALL_DIRECTORY/postman.desktop /usr/share/applications/postman.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment