cask "jupyterlab-app" do arch arm: "arm64", intel: "x64" version "4.6.3-1" sha256 arm: "0c208d3ba4cfa4eedc3a2adafabc009b00f14a271b43b9c8a047b06f12e14503", intel: "bf47dc3a2c7d42edb2c9d84809553a85d2ab8d7afc3c06a28172b67ebe3672ca" 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 depends_on macos: :monterey 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