mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-04 22:04:35 +01:00
Opera is really making an effort to make it difficult for us 😜
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
opera)
|
opera)
|
||||||
name="Opera"
|
name="Opera"
|
||||||
type="dmg"
|
type="dmg"
|
||||||
downloadURL=$(curl -fsIL "$(curl -fs "$(curl -fsIL "https://download.opera.com/download/get/?partner=www&opsys=MacOS" | grep -i "^location" | cut -d " " -f2 | tail -1 | tr -d '\r')" | grep download.opera.com | grep -io "https.*yes" | sed 's/\&/\&/g')" | grep -i "^location" | cut -d " " -f2 | tr -d '\r')
|
downloadURL="$(curl -fsIL "$(curl -fs "$(curl -fsL "https://download.opera.com/download/get/?partner=www&opsys=MacOS" | tr '"' "\n" | grep -e "www.opera.com.*thanks.*opera" | sed 's/\&\;/\&/g')" | tr '"' "\n" | grep "download.opera.com" | sed 's/\&\;/\&/g')" | grep -i "^location" | grep -io "https.*dmg")"
|
||||||
appNewVersion="$(curl -fs "https://get.geo.opera.com/ftp/pub/opera/desktop/" | grep "href=\"\d" | sort -V | tail -1 | tr '"' '\n' | grep "/" | head -1 | tr -d '/')"
|
appNewVersion="$(printf "$downloadURL" | sed -E 's/https.*\/([0-9.]*)\/mac\/.*/\1/')"
|
||||||
versionKey="CFBundleVersion"
|
versionKey="CFBundleVersion"
|
||||||
expectedTeamID="A2P9LX4JPN"
|
expectedTeamID="A2P9LX4JPN"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user