Fix Spicetify wrapper repair in Spotify setup - #196
Open
yukazakiri wants to merge 1 commit into
Open
Conversation
yukazakiri
force-pushed
the
agent/spicetify-wrapper-repair
branch
from
July 10, 2026 13:08
c93d720 to
d662cbd
Compare
yukazakiri
marked this pull request as ready for review
July 10, 2026 13:17
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes
/setup-spotifyfor source-built Spicetify packages that omit the generatedspicetifyWrapper.jsasset introduced in Spicetify v2.44.Upstream context
This works around the upstream Spicetify packaging/build issue documented in spicetify/cli#3888.
Spicetify maintainers explain that since
v2.44.0, the wrapper was made modular andspicetifyWrapper.jsis no longer checked into the repository. It is generated fromsrc/jsHelper/spicetifyWrapperduring release builds byscripts/build-wrapper.mjs. Linux packages that build Spicetify from source without running that build step can install a CLI that still injectshelper/spicetifyWrapper.jsinto Spotify, but does not ship the file. Their recommended manual fix is to install Node/pnpm, runpnpm build:wrapper, then runspicetify apply.Details
This PR makes the Spotify setup recipe self-heal that state by:
/opt/spicetify-cli/jsHelper/spicetifyWrapper.jsparu/yaySpicetify source when availablepnpm, falling back tonpmspicetify backup applyIt also updates the Spicetify theme reapply script to preserve an already-built wrapper across future theme reapplies, and documents the setup behavior for maintainers.
Testing
shellcheck scripts/setup/spotify.sh scripts/colors/apply-spicetify-theme.shbash -n scripts/setup/spotify.sh scripts/colors/apply-spicetify-theme.shbash scripts/setup/_scan.sh | jq -e '.[] | select(.slug=="spotify")'git diff --check