Sonos cask installs S1 controller which no longer works with my system
cdzombak opened this issue · 1 comments
cdzombak commented
Is there a new cask for the S2 thing? If so, move to that.
Otherwise — either way actually — uninstall the S1 app.
cdzombak commented
Looks like I need to automate removing the s1 controller .app, and do a brew reinstall if it's present. otherwise, standard brew install.
$ brew search sonos
==> Casks
sonos ✔ sonos-s1-controller
$ brew cask upgrade sonos
==> Upgrading 1 outdated package:
sonos 11.0 -> 12.0.3
==> Upgrading sonos
==> Downloading https://update.sonos.com/software/mac/mdcr/SonosDesktopController1203.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'sonos'.
==> Purging files for version 12.0.3 of Cask sonos
Error: It seems the App source '/Applications/Sonos.app' is not there.
$ ls /Applications | grep sonos
Sonos S1 Controller.app/
$ trash /Applications/Sonos\ S1\ Controller.app
$ brew cask install sonos
Warning: Cask 'sonos' is already installed.
To re-install sonos, run:
brew cask reinstall sonos
$ brew cask reinstall sonos
==> Downloading https://update.sonos.com/software/mac/mdcr/SonosDesktopController1203.dmg
Already downloaded: /Users/cdzombak/Library/Caches/Homebrew/downloads/bc0f0487eb5cbd26a5a7f78880e1bdb3bb44a4477a1c613300ba31b15d4e94b5--SonosDesktopController1203.dmg
==> Verifying SHA-256 checksum for Cask 'sonos'.
==> Uninstalling Cask sonos
==> Purging files for version 11.0 of Cask sonos
==> Installing Cask sonos
==> Moving App 'Sonos.app' to '/Applications/Sonos.app'.
🍺 sonos was successfully installed!