From 614e412f01be7a3befd45482f6d7ce4d8ffa00fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20B=C3=BChler?= <48823479+adibue@users.noreply.github.com> Date: Mon, 6 Sep 2021 16:15:05 +0200 Subject: [PATCH] Got 'spotify' ready for Apple Silicon 'spotify' is now ready for Apple Silicon --- fragments/labels/spotify.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fragments/labels/spotify.sh b/fragments/labels/spotify.sh index 4c53f06..1f53d99 100644 --- a/fragments/labels/spotify.sh +++ b/fragments/labels/spotify.sh @@ -1,7 +1,11 @@ spotify) name="Spotify" type="dmg" - downloadURL="https://download.scdn.co/Spotify.dmg" + if [[ $(arch) == arm64 ]]; then + downloadURL="https://download.scdn.co/SpotifyARM64.dmg" + elif [[ $(arch) == i386 ]]; then + downloadURL="https://download.scdn.co/Spotify.dmg" + fi # appNewVersion=$(curl -fs https://www.spotify.com/us/opensource/ | cat | grep -o ".*." | head -1 | cut -d ">" -f2 | cut -d "<" -f1) # does not result in the same version as downloaded expectedTeamID="2FNC3A47ZF" ;;