This repository has been archived by the owner on Dec 23, 2023. It is now read-only.
forked from TheRandomLabs/Scoop-Spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Windows SID instead of the name Everyone for better system langua…
…ge compatibility modified: bucket/spotify-latest.json credits TheRandomLabs#47
- Loading branch information
1 parent
a14b5c3
commit daca515
Showing
1 changed file
with
66 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |