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

Commit

Permalink
Fixed errors with spicetify-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikvinayan committed Oct 30, 2021
1 parent e2f93ba commit e14b691
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 109 deletions.
115 changes: 58 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
<!-- markdownlint-disable MD040 -->
<!-- markdownlint-disable MD046 -->

# Scoop-Spotify [![Build status](https://ci.appveyor.com/api/projects/status/0q9mhsk39dw59ej5/branch/master?svg=true)](https://ci.appveyor.com/project/TheRandomLabs/scoop-spotify/branch/master)
# Scoop-Spotify

## Fork notes

Forked from the original repo and remaintained fixing all errosrs

A [Scoop](https://github.com/lukesampson/scoop) bucket for Spotify, Spicetify and related packages.

$ scoop bucket add spotify https://github.com/TheRandomLabs/Scoop-Spotify.git

...I've spent an unhealthy amount of time on automating all of this.

Also check out my [personal bucket](https://github.com/TheRandomLabs/Scoop-Bucket)
and my [Python bucket](https://github.com/TheRandomLabs/Scoop-Python)!

## spotify-latest: hash check failed

If the `spotify-latest` manifest has recently been updated, this error may occur because
Expand All @@ -23,70 +24,70 @@ issue, pass the `-s` or `--skip` flag to Scoop when updating the package.

## Notes

* None of the packages in this bucket can be installed globally.
* If you have the means, please buy Spotify Premium instead of installing BlockTheSpot.
* All of the Spicetify packages require Spotify to be installed either through this Scoop bucket or
the official installer.
* All themes, extensions and custom apps for Spicetify should be installed to `~\.spicetify`
instead of the spicetify-cli installation directory.
* Installing or updating any of the packages in this bucket automatically applies the Spicetify
configuration and preserves BlockTheSpot if it is installed.
* All Spicetify packages apart from spicetify-cli depend on spicetify-cli.
* `--purge` or `-p` should be used to fully uninstall all packages apart from `blockthespot`,
`google-spicetify` and `spicetify-themes`.
- None of the packages in this bucket can be installed globally.
- If you have the means, please buy Spotify Premium instead of installing BlockTheSpot.
- All of the Spicetify packages require Spotify to be installed either through this Scoop bucket or
the official installer.
- All themes, extensions and custom apps for Spicetify should be installed to `~\.spicetify`
instead of the spicetify-cli installation directory.
- Installing or updating any of the packages in this bucket automatically applies the Spicetify
configuration and preserves BlockTheSpot if it is installed.
- All Spicetify packages apart from spicetify-cli depend on spicetify-cli.
- `--purge` or `-p` should be used to fully uninstall all packages apart from `blockthespot`,
`google-spicetify` and `spicetify-themes`.

### BlockTheSpot

* This blocks advertisements for the latest version of Spotify.
* This package depends on `spotify-latest`.
* This is not an executable program. `spotify-latest` will be patched automatically every time this
package or any of the Spicetify packages are installed or updated.
* If BlockTheSpot is ever reset, `blockthespot` can be run to reapply it. This usually happens
after running Spicetify commands, and running `spicetify-apply` rather than `spicetify apply`
ensures that BlockTheSpot is enabled if it is installed.
- This blocks advertisements for the latest version of Spotify.
- This package depends on `spotify-latest`.
- This is not an executable program. `spotify-latest` will be patched automatically every time this
package or any of the Spicetify packages are installed or updated.
- If BlockTheSpot is ever reset, `blockthespot` can be run to reapply it. This usually happens
after running Spicetify commands, and running `spicetify-apply` rather than `spicetify apply`
ensures that BlockTheSpot is enabled if it is installed.

### genius-spicetify

* See [here](https://github.com/khanhas/genius-spicetify#musicxmatch) to configure a custom
Musixmatch user token. `manifest.json` can be found at
`~\.spicetify\CustomApps\genius\manifest.json`.
- See [here](https://github.com/khanhas/genius-spicetify#musicxmatch) to configure a custom
Musixmatch user token. `manifest.json` can be found at
`~\.spicetify\CustomApps\genius\manifest.json`.

### spicetify-autoVolume

* See
[here](https://github.com/amanharwara/spicetify-autoVolume#changing-the-intervalminimum-volume)
to modify the configuration. `autoVolume.js` can be found at
`~\.spicetify\Extensions\autoVolume.js`.
- See
[here](https://github.com/amanharwara/spicetify-autoVolume#changing-the-intervalminimum-volume)
to modify the configuration. `autoVolume.js` can be found at
`~\.spicetify\Extensions\autoVolume.js`.

### spicetify-cli

* Experimental features, fast user switching and all
[default extensions](https://github.com/khanhas/spicetify-cli/wiki/Extensions) apart from Auto Skip
Videos and DJ Mode are enabled by default.
* `spicetify-apply` is should be run instead of `spicetify apply` if BlockTheSpot is installed, as
it ensures that BlockTheSpot is enabled if it is installed.
* It should be noted that `spicetify-apply` also runs `spicetify restore` and `spicetify backup`
before running `spicetify apply` to ensure that changes are applied every time.
* For similar reasons, `spicetify-enable-devtool` and `spicetify-disable-devtool` should be run
instead of `spicetify enable-devtool` and `spicetify disable-devtool`.
* The three above commands also support the `-quiet` switch.
- Experimental features, fast user switching and all
[default extensions](https://github.com/khanhas/spicetify-cli/wiki/Extensions) apart from Auto Skip
Videos and DJ Mode are enabled by default.
- `spicetify-apply` is should be run instead of `spicetify apply` if BlockTheSpot is installed, as
it ensures that BlockTheSpot is enabled if it is installed.
- It should be noted that `spicetify-apply` also runs `spicetify restore` and `spicetify backup`
before running `spicetify apply` to ensure that changes are applied every time.
- For similar reasons, `spicetify-enable-devtool` and `spicetify-disable-devtool` should be run
instead of `spicetify enable-devtool` and `spicetify disable-devtool`.
- The three above commands also support the `-quiet` switch.

### spicetify-jqbx

* This requires Spotify Premium.
- This requires Spotify Premium.

### spicetify-themes

* The [Elementary](https://github.com/morpheusthewhite/spicetify-themes/tree/master/Elementary)
theme requires the Open Sans and Raleway fonts:
- The [Elementary](https://github.com/morpheusthewhite/spicetify-themes/tree/master/Elementary)
theme requires the Open Sans and Raleway fonts:

```powershell
$ scoop bucket add nerd-fonts
$ sudo scoop install Open-Sans Raleway
```

* The [WintergatanBlueprint](https://github.com/morpheusthewhite/spicetify-themes/tree/master/WintergatanBlueprint)
theme requires the Ubuntu font:
- The [WintergatanBlueprint](https://github.com/morpheusthewhite/spicetify-themes/tree/master/WintergatanBlueprint)
theme requires the Ubuntu font:

```powershell
$ scoop bucket add nerd-fonts
Expand All @@ -95,22 +96,22 @@ $ sudo scoop install Ubuntu-NF

### Spotify (latest)

* This is the latest version of Spotify.
* Unlike [Ash258's version](https://github.com/Ash258/scoop-Ash258/blob/master/bucket/Spotify.json),
this version installs completely silently and to the Scoop directory.
* Spotify's built-in updater is disabled, and Scoop should be used to update it instead.
* Spotify should be installed locally and not globally.
* This cannot be installed concurrently with `spotify-with-blockthespot`.
- This is the latest version of Spotify.
- Unlike [Ash258's version](https://github.com/Ash258/scoop-Ash258/blob/master/bucket/Spotify.json),
this version installs completely silently and to the Scoop directory.
- Spotify's built-in updater is disabled, and Scoop should be used to update it instead.
- Spotify should be installed locally and not globally.
- This cannot be installed concurrently with `spotify-with-blockthespot`.

### Spotify with BlockTheSpot

* This is an outdated version of Spotify (1.1.4.197.g92d52c4f) with an
[old version of BlockTheSpot](https://github.com/master131/BlockTheSpot).
* Spotify's built-in updater is disabled.
* This should only be used if BlockTheSpot does not work with the latest version of Spotify.
* Spotify with BlockTheSpot should be installed locally and not globally.
* Installation and uninstallation of this package require administrator privileges.
* This cannot be installed concurrently with `spotify-latest`.
- This is an outdated version of Spotify (1.1.4.197.g92d52c4f) with an
[old version of BlockTheSpot](https://github.com/master131/BlockTheSpot).
- Spotify's built-in updater is disabled.
- This should only be used if BlockTheSpot does not work with the latest version of Spotify.
- Spotify with BlockTheSpot should be installed locally and not globally.
- Installation and uninstallation of this package require administrator privileges.
- This cannot be installed concurrently with `spotify-latest`.

## Installing and customizing Spotify

Expand Down
98 changes: 48 additions & 50 deletions bucket/spicetify-themes.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,50 @@
{
"version": "2021-10-29T15.48.28",
"description": "Community-created themes for Spicetify.",
"homepage": "https://github.com/morpheusthewhite/spicetify-themes",
"license": "MIT",
"depends": "spicetify-cli",
"url": "https://github.com/morpheusthewhite/spicetify-themes/archive/master.zip",
"hash": "da5f4aaf5e83f21403a280e9bd2cc4a9bce48ffbada3abe5e8ec3825a45e182f",
"notes": [
"The Elementary theme requires the Open Sans and Raleway fonts:",
"scoop bucket add nerd-fonts",
"sudo scoop install open-sans raleway",
"The WintergatanBlueprint theme requires the Ubuntu font:",
"scoop bucket add nerd-fonts",
"sudo scoop install Ubuntu-NF",
"A preview of all of the themes can be found here: https://github.com/morpheusthewhite/spicetify-themes/wiki/Themes-preview"
],
"extract_dir": "spicetify-themes-master",
"installer": {
"script": [
"if ($global) {",
" Write-Host \"$app cannot be installed globally.\" -Foreground Red",
" exit 1",
"}",
"",
"if (-not (Test-Path (get-spotify-path))) {",
" Write-Host \"Spotify must be installed to install $app.\" -Foreground Red",
" exit 1",
"}",
"",
"Get-ChildItem $dir -Directory | ForEach-Object {",
" Remove-Item -ErrorAction Ignore -Recurse \"$env:USERPROFILE\\.spicetify\\Themes\\$($_.Name)\"",
" Copy-Item -Recurse $_.FullName -Destination \"$env:USERPROFILE\\.spicetify\\Themes\"",
"}",
"",
"(Get-Content \"$env:USERPROFILE\\.spicetify\\Themes\\Elementary\\user.css\").Replace('Google Sans', 'Open Sans') | Set-Content \"$env:USERPROFILE\\.spicetify\\Themes\\Elementary\\user.css\"",
"",
"init-spicetify-config-and-apply"
]
},
"uninstaller": {
"script": "Get-ChildItem \"$dir\" | ForEach-Object { Remove-Item -Recurse -ErrorAction Ignore \"$env:USERPROFILE\\.spicetify\\Themes\\$($_.Name)\" }"
},
"checkver": {
"url": "https://api.github.com/repos/morpheusthewhite/spicetify-themes/commits",
"regex": "([\\d-]+T)(\\d+):(\\d+):(\\d+)",
"replace": "$1$2.$3.$4"
},
"autoupdate": {
"url": "https://github.com/morpheusthewhite/spicetify-themes/archive/master.zip"
}
"version": "2021-10-29T15.48.28",
"description": "Community-created themes for Spicetify.",
"homepage": "https://github.com/morpheusthewhite/spicetify-themes",
"license": "MIT",
"depends": "spicetify-cli",
"url": "https://github.com/morpheusthewhite/spicetify-themes/archive/master.zip",
"hash": "da5f4aaf5e83f21403a280e9bd2cc4a9bce48ffbada3abe5e8ec3825a45e182f",
"notes": [
"The Elementary theme requires the Open Sans and Raleway fonts:",
"scoop bucket add nerd-fonts",
"sudo scoop install open-sans raleway",
"The WintergatanBlueprint theme requires the Ubuntu font:",
"scoop bucket add nerd-fonts",
"sudo scoop install Ubuntu-NF",
"A preview of all of the themes can be found here: https://github.com/morpheusthewhite/spicetify-themes/wiki/Themes-preview"
],
"extract_dir": "spicetify-themes-master",
"installer": {
"script": [
"if ($global) {",
" Write-Host \"$app cannot be installed globally.\" -Foreground Red",
" exit 1",
"}",
"",
"if (-not (Test-Path (get-spotify-path))) {",
" Write-Host \"Spotify must be installed to install $app.\" -Foreground Red",
" exit 1",
"}",
"",
"Get-ChildItem $dir -Directory | ForEach-Object {",
" Remove-Item -ErrorAction Ignore -Recurse \"$env:USERPROFILE\\.spicetify\\Themes\\$($_.Name)\"",
" Copy-Item -Recurse $_.FullName -Destination \"$env:USERPROFILE\\.spicetify\\Themes\"",
"}",
"",
"init-spicetify-config-and-apply"
]
},
"uninstaller": {
"script": "Get-ChildItem \"$dir\" | ForEach-Object { Remove-Item -Recurse -ErrorAction Ignore \"$env:USERPROFILE\\.spicetify\\Themes\\$($_.Name)\" }"
},
"checkver": {
"url": "https://api.github.com/repos/morpheusthewhite/spicetify-themes/commits",
"regex": "([\\d-]+T)(\\d+):(\\d+):(\\d+)",
"replace": "$1$2.$3.$4"
},
"autoupdate": {
"url": "https://github.com/morpheusthewhite/spicetify-themes/archive/master.zip"
}
}
4 changes: 2 additions & 2 deletions scripts/init-spicetify-config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ if (-not (Test-Path "$env:APPDATA\Spotify\prefs")) {

Stop-Process -ErrorAction Ignore -Name Spotify

$config_exists = Test-Path "$env:USERPROFILE\.spicetify\config.ini"
$config_exists = Test-Path "$env:USERPROFILE\.spicetify\config-xpui.ini"

& "$PSScriptRoot\spicetify.exe" config spotify_path "$(Resolve-Path(Split-Path $spotify_path))" --quiet

if (-not $config_exists) {
& "$PSScriptRoot\spicetify.exe" config experimental_features 1 --quiet
& "$PSScriptRoot\spicetify.exe" config fastUser_switching 1 --quiet
& "$PSScriptRoot\spicetify.exe" config extensions "autoSkipExplicit.js|bookmark.js|fullAppDisplay.js|keyboardShortcut.js|newRelease.js|queueAll.js|shuffle+.js|trashbin.js|webnowplaying.js" --quiet
& "$PSScriptRoot\spicetify.exe" config extensions "autoSkipExplicit.js|fullAppDisplay.js|keyboardShortcut.js|shuffle+.js|trashbin.js|webnowplaying.js" --quiet
}

0 comments on commit e14b691

Please sign in to comment.