spotify: Amend the procedure for blocking Spotify autoupdates
Closes https://github.com/ScoopInstaller/Extras/issues/15471 (and possibly also https://github.com/ScoopInstaller/Extras/issues/12429). Relates to https://github.com/ScoopInstaller/Extras/issues/10841 and PR https://github.com/ScoopInstaller/Extras/pull/12737
Change 1: Instead of using "read-only" and "system" files attributes (which Spotify doesn't respect) to block the deletion of the file named Update, the icacls command is used to deny delete permissions to the current user for this file. I've verified that Spotify doesn't delete this file on startup anymore.
Change 2: The Remove-Item commands have been modified to work without pausing for user input, regardless of whether Update is a file or a directory. Also, all the commands related to autoupdate blocking have been set to not print error messages on failure (to avoids issues like https://github.com/ScoopInstaller/Extras/issues/11216)
- [X] Use conventional PR title:
<manifest-name[@version]|chore>: <general summary of the pull request> - [X] I have read the Contributing Guide
All changes look good.
Wait for review from human collaborators.
spotify
- [x] Description
- [x] License
- [x] Hashes
- [x] Checkver
- [x] Autoupdate
I'll fix the failing tests within a couple of days!
/verify
Your changes do not pass checks.
spotify
- [x] Description
- [x] License
- [ ] Hashes
- [ ] Checkver
- [x] Autoupdate
/verify
All changes look good.
Wait for review from human collaborators.
spotify
- [x] Description
- [x] License
- [x] Hashes
- [x] Checkver
- [x] Autoupdate
@HUMORCE Can you please take a look at the updated PR when you have the chance? I can confirm that this blocked Spotify's latest automatic update for me, so this would close https://github.com/ScoopInstaller/Extras/issues/15471 and https://github.com/ScoopInstaller/Extras/issues/12429.
/verify
All changes look good.
Wait for review from human collaborators.
spotify
- [x] Description
- [x] License
- [x] Hashes
- [x] Checkver
- [x] Autoupdate