Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.35 KB

macos.md

File metadata and controls

25 lines (19 loc) · 1.35 KB

Install: MacOS

MacOS injection works through the DYLD_INSERT_LIBRARIES environment variable. This variable loads specified .dylib (dynamic library) files into the process, which Extendify uses to inject into the web contents.

You can download our .dylib file depending on your architecture:

In order to relax constraints on .dylib loading to allow DYLD_INSERT_LIBRARIES to function, the Spotify binary has to be modified to disable the Hardened Runtime. The following command ad-hoc signs and removes the runtime restriction flag on the Spotify binary.

codesign --force --sign - --preserve-metadata=identifier,entitlements,requirements,launch-constraints,library-constraints /Applications/Spotify.app/Contents/MacOS/Spotify

Whenever you run the Spotify app (specifically, the binary at Spotify.app/Contents/MacOS/Spotify), prefix your command with DYLD_INSERT_LIBRARIES=path/to/macos_<arch>.dylib, or provide it in some other way. For example, it can be used with the open command:

open --env DYLD_INSERT_LIBRARIES=path/to/macos_<arch>.dylib /Applications/Spotify.app