From 17d3aae66d9687c7ea514f3a567ca033011ef7f0 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Mon, 27 Mar 2023 14:11:27 -0700 Subject: [PATCH] fig: Remove broken zap script (#143867) The script is part of the app but runs after the zap, not before, so it no longer exists: ==> Running uninstall script /Applications/Fig.app/Contents/MacOS/fig-darwin-universal Error: uninstall script /Applications/Fig.app/Contents/MacOS/fig-darwin-universal does not exist. Zapping implies uninstalling, which happens first, so the script isn't necessary anyway. --- Casks/fig.rb | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/Casks/fig.rb b/Casks/fig.rb index 9822895d56..6c11382567 100644 --- a/Casks/fig.rb +++ b/Casks/fig.rb @@ -34,21 +34,17 @@ cask "fig" do "io.fig.cursor", ] - zap script: { - executable: "#{appdir}/Fig.app/Contents/MacOS/fig-darwin-universal", - args: ["_", "brew-uninstall", "--zap"], - }, - trash: [ - "~/.fig", - "~/.fig.dotfiles.bak", - "~/Library/Application Support/com.mschrage.fig", - "~/Library/Application Support/fig", - "~/Library/Caches/com.mschrage.fig", - "~/Library/Caches/fig", - "~/Library/HTTPStorages/com.mschrage.fig", - "~/Library/Preferences/com.mschrage.fig.*", - "~/Library/WebKit/com.mschrage.fig", - ] + zap trash: [ + "~/.fig", + "~/.fig.dotfiles.bak", + "~/Library/Application Support/com.mschrage.fig", + "~/Library/Application Support/fig", + "~/Library/Caches/com.mschrage.fig", + "~/Library/Caches/fig", + "~/Library/HTTPStorages/com.mschrage.fig", + "~/Library/Preferences/com.mschrage.fig.*", + "~/Library/WebKit/com.mschrage.fig", + ] caveats <<~EOS Please launch the Fig application to finish setup...