mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-23 13:14:13 +00:00
Got 'mattermost' ready for Apple Silicon
`mattermost` can now distinguish between Intel and Apple Silicon.
This commit is contained in:
@@ -1938,7 +1938,13 @@ malwarebytes)
|
|||||||
mattermost)
|
mattermost)
|
||||||
name="Mattermost"
|
name="Mattermost"
|
||||||
type="dmg"
|
type="dmg"
|
||||||
downloadURL=$(downloadURLFromGit mattermost desktop)
|
if [[ $(arch) == i386 ]]; then
|
||||||
|
downloadURL=$(curl --silent --fail "https://api.github.com/repos/mattermost/desktop/releases/latest" \
|
||||||
|
| awk -F '"' "/browser_download_url/ && /mac.dmg/ && ! /blockmap/ { print \$4 }")
|
||||||
|
elif [[ $(arch) == arm64 ]]; then
|
||||||
|
downloadURL=$(curl --silent --fail "https://api.github.com/repos/mattermost/desktop/releases/latest" \
|
||||||
|
| awk -F '"' "/browser_download_url/ && /mac-m1.dmg/ && ! /blockmap/ { print \$4 }")
|
||||||
|
fi
|
||||||
appNewVersion=$(versionFromGit mattermost desktop )
|
appNewVersion=$(versionFromGit mattermost desktop )
|
||||||
expectedTeamID="UQ8HT4Q2XM"
|
expectedTeamID="UQ8HT4Q2XM"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user