alienator88 / Pearcleaner

A free, source-available and fair-code licensed mac app cleaner
https://itsalin.com/appInfo/?id=pearcleaner
Other
745 stars 18 forks source link

[BUG] Homebrew cleanup not working as expected. #63

Closed uzza1hossain closed 2 weeks ago

uzza1hossain commented 2 weeks ago

Describe the bug:
A clear and concise description of what the bug is.

Steps to reproduce:

  1. Install a cask via homebrew (I just tested with only-switch)
  2. Uninstall using Pearcleaner.
  3. Run brew info package-name
  4. It's still shows installed and I have to uninstall it manually.

Expected behavior
Automatically uninstall from homebrew

Info:

alienator88 commented 2 weeks ago

I found the issue..a couple reasons it didn't work:

  1. It wasn't handling spaces as dashes in the names, so fixed that first.
  2. Unrelated to only-switch, but other casks have identifiers that don't match the app name, so I had to add some checks in there first to look at the brew list of casks and match them up with the app name being uninstalled

I'll have this fix out in the next version. Waiting to get another feature request completed before I release this one.

alienator88 commented 2 weeks ago

v3.7.0 is out with this fix.