forked from Installomator/Installomator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
shutterencoder) | ||
name="Shutter Encoder" | ||
type="pkg" | ||
curlOptions=( -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15" ) | ||
webSource=$(curl -L $curlOptions --request GET --url "https://www.shutterencoder.com/changelog.html&render_js=1") | ||
if [[ $(arch) == "arm64" ]]; then | ||
appNewVersion=$(grep "href=\"Shutter Encoder .* Apple Silicon" <<< $webSource | awk '{print$4}') | ||
downloadURL=$(grep "APPLE SILICON VERSION" <<< $webSource | grep -oe "https://.*\" class" | sed -e 's/" class//') | ||
elif [[ $(arch) == "i386" ]]; then | ||
appNewVersion=$(grep "href=\"Shutter Encoder .* Mac 64bits" <<< $webSource | awk '{print$4}') | ||
downloadURL=$(grep ">INTEL 64-BITS VERSION" <<< $webSource | grep -oe "https://.*\" class" | sed -e 's/" class//') | ||
fi | ||
expectedTeamID="LZ28YRG3Q4" | ||
;; |