Easy application update (in Linux)
I use a script to update Proton Pass. I would like to do the same with other products. I need the equivalent of this file https://proton.me/download/PassDesktop/linux/x64/version.json for other products.
Does it exist? Where are they for the other products? (don't you love bash scripts?) I just realized I retrieve the version file more than once. I will fix that if you answer my question.
!/bin/bash
NEWVER=$(curl -s https://proton.me/download/PassDesktop/linux/x64/version.json | jq .Releases[0].Version | sed s/\"//g )
OLDVER=$( rpm -qi proton-pass |grep Version | awk '{ print $3 }' )
echo OLD $OLDVER NEW $NEWVER
if [ "$OLDVER" != "$NEWVER" ] ; then
echo $(curl -s https://proton.me/download/PassDesktop/linux/x64/version.json | jq .Releases[0].File[1].Url | sed s/\"//g )
zypper --no-gpg-checks in $(curl -s https://proton.me/download/PassDesktop/linux/x64/version.json | jq .Releases[0].File[1].Url | sed s/\"//g )
fi
-
Anonymous
commented
I decided to ask lumo this question. I was amazed to discover it understood the question and answered it.
Proton Pass https://proton.me/download/PassDesktop/linux/x64/version.json (the one you already use)
Proton Mail https://proton.me/download/mail/linux/version.json
Proton Authenticator https://proton.me/download/authenticator/linux/version.json