Scoop-Spotify
Scoop-Spotify copied to clipboard
Spicetify-cli: Some scripts are not recognised as cmdlet, scripts, ...
When I first installed and later updated this bucket through scoop, I got this error message:
The term: init-spicetify-config-and-apply.ps1 is not recognized as a name of a cmdlet, function, script ...
Basically it's not in path, and failed the rest of the installation process.
It seems that all the scripts from this bucket's scripts folder
are not copied into where spicetify-cli
is installed. I did a manually fix by copying all scripts into where it's needed, but each update is troublesome. So I submit a new issue.
This error may happened because there is another bucket (main)
which also contains spicetify-cli
, and this line in your spicetify-cli
:
"installer": {
"script": [
"...",
"$null, $bucket = find_manifest($app)", <---
"$bucketdir = Find-BucketDirectory($bucket)",
"...",
]
}
Without find_manifest($app, $bucket)
specifying which bucket, it's set to default as main bucket, whose script folder does not contains necessary scripts like init-spicetify-config-and-apply.ps1
, spicetify-apply.ps1
, ... and the following line
@(all the scripts) | ForEach-Object { Copy-Item "..." } ;
fail, never made it into spicetify-cli
installation directory.
I suggest changing that line into
"$null, $bucket = find_manifest $app 'spotify'",
as
find_manifest($app, 'spotify'),
both will be passed as array into $app
param.
I'm sorry for the verbosity, hope this help anyone who encounter the same problem as I did.
@jacob-thanh See https://spicetify.app/docs/getting-started/advanced-installation#scoop. Spicetify is already in the official repos https://github.com/TheRandomLabs/Scoop-Spotify/issues/65#issuecomment-1062709359, do not use this bucket.
@TheRandomLabs You may want to consider cutting this package if the official repos contain spicetify in the same capacity, especially with the compile/install errors yours has? Just an idea.
@Ama1999 TheRandomLabs has been absent for over a year, and everything here is just run by CI now. This is why the Nonportable bucket has been mirrored to the official org instead of being transferred (https://github.com/ScoopInstaller/Nonportable/issues/1)
@sitiom Ah okay. Thanks for letting me know!
As @itsmeboy0 suggests, I recommend just using spicetify-cli from the official buckets now. The spicetify-marketplace custom app is great and extensions/themes installed from there auto-update.