From af7c76087eaee303007c9ebb9f17ca7b4dbc234b Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Thu, 7 Dec 2023 07:16:24 +0000 Subject: [PATCH] Latest --- software.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/software.yml b/software.yml index 3566dfa6..f4d1489a 100644 --- a/software.yml +++ b/software.yml @@ -6176,7 +6176,22 @@ softwarePackages: apt: https://github.com/th-ch/youtube-music/releases/download/v1.19.0/youtube-music_1.19.0_amd64.deb exe: https://github.com/th-ch/youtube-music/releases/download/v1.19.0/YouTube-Music-Setup-1.19.0.exe scoop: extras/youtube-music - script:darwin: DL_URL="https://github.com/th-ch/youtube-music/releases/download/v1.20.0/YouTube-Music-1.20.0.dmg" && if [ $(arch) = 'arm64' ]; then DL_URL="https://github.com/th-ch/youtube-music/releases/download/v1.20.0/YouTube-Music-1.20.0-arm64.dmg"; fi && curl -sSL "$DL_URL" > /tmp/YouTube-Music.dmg && sudo hdiutil attach /tmp/YouTube-Music.dmg && if [ -d "/Volumes/YouTube Music 1.20.0" ]; then sudo cp -R "/Volumes/YouTube Music 1.20.0/YouTube Music.app" /Applications && sudo hdiutil detach "/Volumes/YouTube Music 1.20.0"; elif [ -d "/Volumes/YouTube Music 1.20.0-arm64" ]; then sudo cp -R "/Volumes/YouTube Music 1.20.0-arm/YouTube Music.app" /Applications && sudo hdiutil detach "/Volumes/YouTube Music 1.20.0-arm"; fi && rm -f /tmp/YouTube-Music.dmg + script:darwin: | + DL_URL="https://github.com/th-ch/youtube-music/releases/download/v1.20.0/YouTube-Music-1.20.0.dmg" + if [ $(arch) = 'arm64' ]; then + DL_URL="https://github.com/th-ch/youtube-music/releases/download/v1.20.0/YouTube-Music-1.20.0-arm64.dmg" + fi + echo "Downloading YouTube Music" && curl -sSL "$DL_URL" > /tmp/YouTube-Music.dmg + echo "Attaching volume" && sudo hdiutil attach /tmp/YouTube-Music.dmg + echo "Copying to /Applications" + if [ -d "/Volumes/YouTube Music 1.20.0" ]; then + sudo cp -R "/Volumes/YouTube Music 1.20.0/YouTube Music.app" /Applications + echo "Detaching" && sudo hdiutil detach "/Volumes/YouTube Music 1.20.0" + elif [ -d "/Volumes/YouTube Music 1.20.0-arm64" ]; then + sudo cp -R "/Volumes/YouTube Music 1.20.0-arm64/YouTube Music.app" /Applications + echo "Detaching" && sudo hdiutil detach "/Volumes/YouTube Music 1.20.0-arm64" + fi + echo "Removing /tmp/YouTube-Music.dmg" && rm -f /tmp/YouTube-Music.dmg winget: th-ch.YouTubeMusic yay: youtube-music-bin imagine: