Conversation
|
Actually, it seems that the curl does not return the correct dmg version (1.9.6 instead of 3.3.3) and I can't figure out why. |
|
https://protonvpn.com/download/macos-update3.xml seems to hold the version So |
protonvpn)
name="ProtonVPN"
type="dmg"
downloadURL=$(curl -s "https://protonvpn.com/download/macos-update3.xml" | grep -o 'https*://[^"]*\.dmg' | head -1)
appNewVersion=$(echo $downloadURL | sed -e 's/^.*\/Proton.*_v\([0-9.]*\)\.dmg/\1/g')
expectedTeamID="J6S6Q257EK"
;; |
|
Interestingly it pulls a later version that the website |
|
The more I go down this rabbit hole, the more confusing it becomes. But the download link on their site is for: 2.4.3 Basically I was hoping the ios/mac repo could have been used as a source of truth but its on version 3.1.4. So really nothing makes sense |
|
Haha, yes it's pretty all over the place for macOS. Odd as the other ones are upto date in GitHub. |
|
or maybe this protonvpn)
name="ProtonVPN"
type="dmg"
downloadURL=$(curl -s "https://protonvpn.com/download/macos-update3.xml" | xmllint --xpath 'string(//enclosure/@url)' -)
appNewVersion=$(echo $downloadURL | sed -e 's/^.*\/Proton.*_v\([0-9.]*\)\.dmg/\1/g')
expectedTeamID="J6S6Q257EK"
;;@loicyannou Do you want to make another commit? |
|
Sorry @guy-tallon, I missed your message |
|
Great! Thank you for updating it |
|
Thank you! |
The downloadURL has changed from "https://protonvpn.com/download" to "https://protonvpn.com/download-macos"