mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-10 14:23:10 +01:00
Improved 'mattermost'
With `archiveName`, there's a way easier solution to make Intel/ARM downloads work with GitHub. Thanks to @acodega for bringing this to my attention.
This commit is contained in:
@@ -1939,12 +1939,11 @@ mattermost)
|
|||||||
name="Mattermost"
|
name="Mattermost"
|
||||||
type="dmg"
|
type="dmg"
|
||||||
if [[ $(arch) == i386 ]]; then
|
if [[ $(arch) == i386 ]]; then
|
||||||
downloadURL=$(curl --silent --fail "https://api.github.com/repos/mattermost/desktop/releases/latest" \
|
archiveName="mac.dmg"
|
||||||
| awk -F '"' "/browser_download_url/ && /mac.dmg/ && ! /blockmap/ { print \$4 }")
|
|
||||||
elif [[ $(arch) == arm64 ]]; then
|
elif [[ $(arch) == arm64 ]]; then
|
||||||
downloadURL=$(curl --silent --fail "https://api.github.com/repos/mattermost/desktop/releases/latest" \
|
archiveName="mac-m1.dmg"
|
||||||
| awk -F '"' "/browser_download_url/ && /mac-m1.dmg/ && ! /blockmap/ { print \$4 }")
|
|
||||||
fi
|
fi
|
||||||
|
downloadURL=$(downloadURLFromGit mattermost desktop)
|
||||||
appNewVersion=$(versionFromGit mattermost desktop )
|
appNewVersion=$(versionFromGit mattermost desktop )
|
||||||
expectedTeamID="UQ8HT4Q2XM"
|
expectedTeamID="UQ8HT4Q2XM"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user