Latest
This commit is contained in:
parent
cb9ffd0c69
commit
af7c76087e
1 changed files with 16 additions and 1 deletions
17
software.yml
17
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
|
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
|
exe: https://github.com/th-ch/youtube-music/releases/download/v1.19.0/YouTube-Music-Setup-1.19.0.exe
|
||||||
scoop: extras/youtube-music
|
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
|
winget: th-ch.YouTubeMusic
|
||||||
yay: youtube-music-bin
|
yay: youtube-music-bin
|
||||||
imagine:
|
imagine:
|
||||||
|
|
Loading…
Reference in a new issue