cask "jupyterlab" do arch arm: "arm64", intel: "x64" version "4.2.5-1" sha256 arm: "189e5e1294cc646b11701e06e41b3d91159bfe8b7913eebdf76a5d5512e0af38", intel: "23ba65b91957a202239beeb19d4f94603de1837d59f81576d262d68b4c106b3e" url "https://github.com/jupyterlab/jupyterlab-desktop/releases/download/v#{version}/JupyterLab-Setup-macOS-#{arch}.dmg" name "JupyterLab App" desc "Desktop application for JupyterLab" homepage "https://github.com/jupyterlab/jupyterlab-desktop" livecheck do url :url regex(/v?(\d+(?:[.-]\d+)+)/i) strategy :github_latest end app "JupyterLab.app" uninstall pkgutil: "com.electron.jupyterlab-desktop", # See https://github.com/jupyterlab/jupyterlab-desktop/blob/master/user-guide.md#uninstalling-jupyterlab-desktop delete: [ "/usr/local/bin/jlab", "~/Library/jupyterlab-desktop", ] zap trash: [ "~/.jupyter", "~/Library/Application Support/jupyterlab-desktop", "~/Library/Caches/org.jupyter.jupyterlab-desktop", "~/Library/Caches/org.jupyter.jupyterlab-desktop.ShipIt", "~/Library/HTTPStorages/org.jupyter.jupyterlab-desktop", "~/Library/Jupyter", "~/Library/Logs/JupyterLab", "~/Library/Logs/jupyterlab-desktop", "~/Library/Preferences/com.electron.jupyterlab-desktop.plist", "~/Library/Saved Application State/com.electron.jupyterlab-desktop.savedState", ] end