From 2995d59a697714b590acfa0555d13644b7209a2e Mon Sep 17 00:00:00 2001 From: Algis Dumbris Date: Tue, 24 Nov 2026 07:33:15 +0200 Subject: [PATCH] fix(cask): quit the running tray before uninstalling on upgrade `brew upgrade --cask mcpproxy` left two MCPProxy icons in the menu bar (smart-mcp-proxy/mcpproxy-go#2016). The `pkgutil:` step deleted the app bundle while the old tray was still running from it, and the new pkg then launched a second tray. `quit:` runs before `pkgutil:` and also on upgrade, so the tray now exits before its files are removed. Homebrew skips it with a warning when there is no GUI session or the app does not quit within 10 seconds; the pkg's own preinstall (mcpproxy-go#2024) covers that case. --- Casks/mcpproxy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Casks/mcpproxy.rb b/Casks/mcpproxy.rb index dc76176..e94c24e 100644 --- a/Casks/mcpproxy.rb +++ b/Casks/mcpproxy.rb @@ -41,6 +41,7 @@ depends_on macos: :monterey uninstall launchctl: "com.smartmcpproxy.mcpproxy", + quit: "com.smartmcpproxy.mcpproxy", pkgutil: "com.smartmcpproxy.mcpproxy.pkg", delete: "/usr/local/bin/mcpproxy"