Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
Use Windows SID instead of the name Everyone for better system langua…
Browse files Browse the repository at this point in the history
…ge compatibility

	modified:   bucket/spotify-latest.json
	credits
	TheRandomLabs#47
  • Loading branch information
karthikvinayan committed Oct 30, 2021
1 parent a14b5c3 commit daca515
Showing 1 changed file with 66 additions and 71 deletions.
137 changes: 66 additions & 71 deletions bucket/spotify-latest.json
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"
}
}

0 comments on commit daca515

Please sign in to comment.