postman misc

This commit is contained in:
Anthony Axenov 2023-08-31 12:46:39 +08:00
parent f8f3210585
commit 141fc6e8e3
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -4,15 +4,17 @@ source `dirname $0`/../helpers || exit 255
# https://learning.postman.com/docs/getting-started/installation-and-updates/#installing-postman-on-linux
# set -ex
title
mkdir -p "$HOME/install" && \
"$HOME/.local/bin" && \
"$HOME/.local/share/applications"
download "https://dl.pstmn.io/download/latest/linux64" $HOME/install/postman.tar.gz && \
download "https://dl.pstmn.io/download/latest/linux64" "$HOME/install/postman.tar.gz" && \
unpak_targz "$HOME/install/postman.tar.gz" "$HOME/install" && \
symlink $HOME/install/Postman/Postman $HOME/.local/bin/postman && \
symlink "$HOME/install/Postman/Postman" "$HOME/.local/bin/postman" && \
cat << EOF > "$HOME/.local/share/applications/Postman.desktop" && sudo update-desktop-database
[Desktop Entry]
Name=Postman