2021-12-22 13:51:22 +00:00
|
|
|
#!/bin/bash
|
2022-07-04 09:56:45 +00:00
|
|
|
##makedesc: Install postman (latest)
|
|
|
|
|
2022-01-09 08:49:08 +00:00
|
|
|
echo
|
|
|
|
echo "==============================================="
|
|
|
|
echo "Installing postman (latest)..."
|
|
|
|
echo "==============================================="
|
|
|
|
echo
|
2021-12-22 13:51:22 +00:00
|
|
|
|
2022-07-05 02:51:43 +00:00
|
|
|
mkdir -p ${HOME}/install/postman
|
2022-07-05 09:35:46 +00:00
|
|
|
mkdir -p ${HOME}/.local/bin
|
|
|
|
wget "https://dl.pstmn.io/download/latest/linux64" -O ${HOME}/install/postman.tar.gz && \
|
2022-07-05 02:51:43 +00:00
|
|
|
tar -xzf ${HOME}/install/postman.tar.gz -C ${HOME}/install/postman && \
|
2022-10-01 04:09:57 +00:00
|
|
|
ln -sf ${HOME}/install/postman/Postman/Postman ${HOME}/.local/bin/postman && \
|
2022-09-29 05:21:18 +00:00
|
|
|
mkdir -p "${HOME}/.local/share/applications" && \
|
|
|
|
cat << EOF > "${HOME}/.local/share/applications/Postman.desktop"
|
2022-07-05 02:51:43 +00:00
|
|
|
#!/usr/bin/env xdg-open
|
2021-12-22 13:51:22 +00:00
|
|
|
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=Postman
|
2022-07-05 02:51:43 +00:00
|
|
|
Exec=${HOME}/.local/bin/postman
|
|
|
|
Icon=${HOME}/install/postman/Postman/app/icons/icon_128x128.png
|
2021-12-22 13:51:22 +00:00
|
|
|
Categories=Utility,Network
|
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
|
|
|
Encoding=UTF-8
|
2022-07-05 02:51:43 +00:00
|
|
|
EOF
|
2021-12-22 13:51:22 +00:00
|
|
|
sudo update-desktop-database
|