generated from ScoopInstaller/BucketTemplate
-
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.
chore: Add app BlockTheSpot extension for Spotify ad blocking
- Loading branch information
Showing
1 changed file
with
67 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"version": "2024.7.22.109", | ||
"description": "Video, audio & banner adblock/skip for Spotify", | ||
"homepage": "https://github.com/mrpond/BlockTheSpot", | ||
"license": "MIT license", | ||
"url": "https://github.com/mrpond/BlockTheSpot/releases/download/2024.7.22.109/chrome_elf.zip", | ||
"hash": "CE88E6217F34FBF2BE60A525C2E12A0837D38E95BB93DB1E1E759A20B3D629F2", | ||
"pre_install": "", | ||
"installer": { | ||
"script": [ | ||
"if ($global) {", | ||
" Write-Host \"$app cannot be installed globally.\" -Foreground Red", | ||
" exit 1", | ||
"}", | ||
"$SearchPath = $env:AppData", | ||
"$spotifyDir = Get-ChildItem -Path $SearchPath -Directory -Filter \"Spotify\"", | ||
"Write-Host \"\"", | ||
"Stop-Process -Name Spotify -ErrorAction SilentlyContinue", | ||
"Stop-Process -Name SpotifyWebHelper -ErrorAction SilentlyContinue", | ||
"if ($spotifyDir) {", | ||
" Write-Host \"Spotify directory found: $spotifyDir\"", | ||
" Write-Host \"\"", | ||
" Write-Host \"Patching Spotify...\"", | ||
" $patchFiles = (Join-Path -Path $dir -ChildPath 'dpapi.dll'), (Join-Path -Path $dir -ChildPath 'config.ini')", | ||
" Copy-Item -LiteralPath $patchFiles -Destination \"$spotifyDir\" -Force", | ||
" Remove-Item -LiteralPath (Join-Path -Path $spotifyDir -ChildPath 'blockthespot_settings.json') -Force -ErrorAction SilentlyContinue", | ||
" Write-Host \"Spotify patched\"", | ||
"}", | ||
"else {", | ||
"Write-Host \"Spotify directory not found\"", | ||
"}", | ||
" Write-Host \"\"" | ||
] | ||
}, | ||
"uninstaller": { | ||
"script": [ | ||
"if ($global) {", | ||
" Write-Host \"$app cannot be installed globally.\" -Foreground Red", | ||
" exit 1", | ||
"}", | ||
"$SearchPath = $env:AppData", | ||
"$spotifyDir = Get-ChildItem -Path $SearchPath -Directory -Filter \"Spotify\"", | ||
"Write-Host \"\"", | ||
"Stop-Process -Name Spotify -ErrorAction SilentlyContinue", | ||
"Stop-Process -Name SpotifyWebHelper -ErrorAction SilentlyContinue", | ||
"if ($spotifyDir) {", | ||
" Write-Host \"Spotify directory found: $spotifyDir\"", | ||
" Write-Host \"\"", | ||
" Write-Host \"Unpatching Spotify...\"", | ||
" $patchFiles = (Join-Path -Path $dir -ChildPath 'dpapi.dll'), (Join-Path -Path $dir -ChildPath 'config.ini')", | ||
" Remove-Item -LiteralPath (Join-Path -Path $spotifyDir -ChildPath 'dpapi.dll') -Force -ErrorAction SilentlyContinue", | ||
" Remove-Item -LiteralPath (Join-Path -Path $spotifyDir -ChildPath 'blockthespot_settings.json') -Force -ErrorAction SilentlyContinue", | ||
" Write-Host \"Spotify unpatched\"", | ||
"}", | ||
"else {", | ||
" Write-Host \"Spotify directory not found\" -Foreground Red", | ||
"}", | ||
"Write-Host \"\"" | ||
] | ||
}, | ||
"checkver": { | ||
"github": "https://github.com/mrpond/BlockTheSpot" | ||
}, | ||
"autoupdate": { | ||
"url": "https://github.com/mrpond/BlockTheSpot/releases/download/$version/chrome_elf.zip" | ||
} | ||
} |