diff --git a/bucket/spotify-latest.json b/bucket/spotify-latest.json index 533ecd9..fcbaa64 100644 --- a/bucket/spotify-latest.json +++ b/bucket/spotify-latest.json @@ -1,74 +1,69 @@ { - "version": "1.1.71.560.gc21c3367", - "description": "Digital music service.", - "homepage": "https://www.spotify.com/", - "license": { - "identifier": "Freeware", - "url": "https://www.spotify.com/au/legal/end-user-agreement/" - }, - "url": "https://download.scdn.co/SpotifyFullSetup.exe", - "hash": "e40bf92a02b7f3f3d460192ffd627d076e4a07c05dc277ccea63ed4df6c5c3fc", - "notes": "--purge should be used to fully uninstall this package.", - "installer": { - "script": [ - "if ($global) {", - " Write-Host \"$app cannot be installed globally.\" -Foreground Red", - " exit 1", - "}", - "", - "if (installed spotify-with-blockthespot) {", - " Write-Host \"$app and spotify-with-blockthespot cannot both be installed at the same time.\" -Foreground Red", - " exit 1", - "}", - "", - "Stop-Process -ErrorAction Ignore -Name Spotify", - "Start-Process -Wait \"$dir\\SpotifyFullSetup.exe\" -ArgumentList '/extract', \"`\"$dir`\"\"", - "Remove-Item \"$dir\\SpotifyFullSetup.exe\"", - "Remove-Item \"$dir\\SpotifyMigrator.exe\"", - "", - "icacls \"$env:LOCALAPPDATA\\Spotify\\Update\" /reset /T | Out-Null", - "Remove-Item -ErrorAction Ignore -Recurse \"$env:LOCALAPPDATA\\Spotify\\Update\" | Out-Null", - "New-Item -ErrorAction Ignore \"$env:LOCALAPPDATA\\Spotify\\Update\" -ItemType Directory | Out-Null", - "icacls \"$env:LOCALAPPDATA\\Spotify\\Update\" /deny Everyone:R | Out-Null", - "", - "New-Item \"$dir\\config.ini\" | Out-Null # Persist for BlockTheSpot" - ] - }, - "post_install": [ - "if (installed spicetify-cli) { init-spicetify-config-and-apply }", - "elseif (installed blockthespot) { blockthespot }" + "version": "1.1.71.560.gc21c3367", + "description": "Digital music service.", + "homepage": "https://www.spotify.com/", + "license": { + "identifier": "Freeware", + "url": "https://www.spotify.com/au/legal/end-user-agreement/" + }, + "url": "https://download.scdn.co/SpotifyFullSetup.exe", + "hash": "e40bf92a02b7f3f3d460192ffd627d076e4a07c05dc277ccea63ed4df6c5c3fc", + "notes": "--purge should be used to fully uninstall this package.", + "installer": { + "script": [ + "if ($global) {", + " Write-Host \"$app cannot be installed globally.\" -Foreground Red", + " exit 1", + "}", + "", + "if (installed spotify-with-blockthespot) {", + " Write-Host \"$app and spotify-with-blockthespot cannot both be installed at the same time.\" -Foreground Red", + " exit 1", + "}", + "", + "Stop-Process -ErrorAction Ignore -Name Spotify", + "Start-Process -Wait \"$dir\\SpotifyFullSetup.exe\" -ArgumentList '/extract', \"`\"$dir`\"\"", + "Remove-Item \"$dir\\SpotifyFullSetup.exe\"", + "Remove-Item \"$dir\\SpotifyMigrator.exe\"", + "", + "icacls \"$env:LOCALAPPDATA\\Spotify\\Update\" /reset /T | Out-Null", + "Remove-Item -ErrorAction Ignore -Recurse \"$env:LOCALAPPDATA\\Spotify\\Update\" | Out-Null", + "New-Item -ErrorAction Ignore \"$env:LOCALAPPDATA\\Spotify\\Update\" -ItemType Directory | Out-Null", + "icacls \"$env:LOCALAPPDATA\\Spotify\\Update\" /deny *S-1-1-0:R | Out-Null", + "", + "New-Item \"$dir\\config.ini\" | Out-Null # Persist for BlockTheSpot" + ] + }, + "post_install": [ + "if (installed spicetify-cli) { init-spicetify-config-and-apply }", + "elseif (installed blockthespot) { blockthespot }" + ], + "uninstaller": { + "script": [ + "Stop-Process -ErrorAction Ignore -Name Spotify", + "if (-not $purge) { Move-Item -ErrorAction Ignore -Force \"$env:APPDATA\\Spotify\" -Destination \"$env:APPDATA\\Spotify.original\" }", + "Start-Process -Wait \"$dir\\Spotify.exe\" -ArgumentList '/Uninstall', '/Silent'", + "if (-not $purge) { Move-Item -ErrorAction Ignore -Force \"$env:APPDATA\\Spotify.original\" -Destination \"$env:APPDATA\\Spotify\" }", + "icacls \"$env:LOCALAPPDATA\\Spotify\\Update\" /grant Everyone:R | Out-Null", + "if ($purge) { Remove-Item -ErrorAction Ignore -Recurse -Force \"$env:LOCALAPPDATA\\Spotify\" }", + "else { Remove-Item -ErrorAction Ignore -Recurse -Force \"$env:LOCALAPPDATA\\Spotify\\Update\" }" + ] + }, + "bin": "Spotify.exe", + "shortcuts": [["Spotify.exe", "Spotify"]], + "persist": "config.ini", + "checkver": { + "script": [ + "$download_url = 'https://download.scdn.co/SpotifyFullSetup.exe'", + "$download = cache_path 'spotify-latest' 'unknown' $download_url", + "do_dl $download_url $download", + "$version = (Get-Item $download).VersionInfo.ProductVersion", + "Move-Item -Force $download -Destination (cache_path 'spotify-latest' $version $download_url)", + "return $version" ], - "uninstaller": { - "script": [ - "Stop-Process -ErrorAction Ignore -Name Spotify", - "if (-not $purge) { Move-Item -ErrorAction Ignore -Force \"$env:APPDATA\\Spotify\" -Destination \"$env:APPDATA\\Spotify.original\" }", - "Start-Process -Wait \"$dir\\Spotify.exe\" -ArgumentList '/Uninstall', '/Silent'", - "if (-not $purge) { Move-Item -ErrorAction Ignore -Force \"$env:APPDATA\\Spotify.original\" -Destination \"$env:APPDATA\\Spotify\" }", - "icacls \"$env:LOCALAPPDATA\\Spotify\\Update\" /grant Everyone:R | Out-Null", - "if ($purge) { Remove-Item -ErrorAction Ignore -Recurse -Force \"$env:LOCALAPPDATA\\Spotify\" }", - "else { Remove-Item -ErrorAction Ignore -Recurse -Force \"$env:LOCALAPPDATA\\Spotify\\Update\" }" - ] - }, - "bin": "Spotify.exe", - "shortcuts": [ - [ - "Spotify.exe", - "Spotify" - ] - ], - "persist": "config.ini", - "checkver": { - "script": [ - "$download_url = 'https://download.scdn.co/SpotifyFullSetup.exe'", - "$download = cache_path 'spotify-latest' 'unknown' $download_url", - "do_dl $download_url $download", - "$version = (Get-Item $download).VersionInfo.ProductVersion", - "Move-Item -Force $download -Destination (cache_path 'spotify-latest' $version $download_url)", - "return $version" - ], - "regex": "(.+)" - }, - "autoupdate": { - "url": "https://download.scdn.co/SpotifyFullSetup.exe" - } + "regex": "(.+)" + }, + "autoupdate": { + "url": "https://download.scdn.co/SpotifyFullSetup.exe" + } }