I hadn't seen https://github.com/Nuzair46/BlockTheSpot-Mac/pull/83 and figured out how to properly parse a plist file on the terminal without bash hackery:
defaults read "/Applications/Spotify.app/Contents/Info.plist" CFBundleVersion
This solution should hold up for much longer without braking since I'm using Apple's official parsing tool.
Until this gets merged just change line 85 of install.sh from
CLIENT_VERSION=$(awk '/CFBundleShortVersionString/{getline; print}' "${INSTALL_PATH}/Contents/Info.plist" | cut -d\> -f2- | rev | cut -d. -f2- | rev)
to
CLIENT_VERSION=$(defaults read "${INSTALL_PATH}/Contents/Info.plist" CFBundleVersion)
Problem
Solution
I hadn't seen https://github.com/Nuzair46/BlockTheSpot-Mac/pull/83 and figured out how to properly parse a plist file on the terminal without bash hackery:
defaults read "/Applications/Spotify.app/Contents/Info.plist" CFBundleVersion
This solution should hold up for much longer without braking since I'm using Apple's official parsing tool.Until this gets merged just change line 85 of install.sh from
CLIENT_VERSION=$(awk '/CFBundleShortVersionString/{getline; print}' "${INSTALL_PATH}/Contents/Info.plist" | cut -d\> -f2- | rev | cut -d. -f2- | rev)
toCLIENT_VERSION=$(defaults read "${INSTALL_PATH}/Contents/Info.plist" CFBundleVersion)