mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
This is a special construction of the `appNewVersion` variable. Not sure this is future proof, but the current one was not working.
15 lines
914 B
Bash
15 lines
914 B
Bash
brave)
|
|
name="Brave Browser"
|
|
type="dmg"
|
|
if [[ $(arch) != "i386" ]]; then
|
|
printlog "Architecture: arm64 (not i386)"
|
|
downloadURL=$(curl -fsIL https://laptop-updates.brave.com/latest/osxarm64/release | grep -i "^location" | awk '{print $2}')
|
|
else
|
|
printlog "Architecture: i386"
|
|
downloadURL=$(curl -fsIL https://laptop-updates.brave.com/latest/osx/release | grep -i "^location" | awk '{print $2}')
|
|
fi
|
|
# downloadURL=$(curl -fsL "https://updates.bravesoftware.com/sparkle/Brave-Browser/stable/appcast.xml" | xpath '//rss/channel/item[last()]/enclosure/@url' 2>/dev/null | cut -d '"' -f 2)
|
|
appNewVersion="96.$(curl -fsL "https://updates.bravesoftware.com/sparkle/Brave-Browser/stable/appcast.xml" | xpath '//rss/channel/item[last()]/enclosure/@sparkle:shortVersionString' 2>/dev/null | cut -d '"' -f 2 | cut -d "." -f1-3)"
|
|
expectedTeamID="KL8N8XSYF4"
|
|
;;
|