diff --git a/bucket/blockthespot.json b/bucket/blockthespot.json new file mode 100644 index 0000000..a251037 --- /dev/null +++ b/bucket/blockthespot.json @@ -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" + } +}