homebrew-cask/Casks/jupyterlab.rb

38 lines
1.3 KiB
Ruby

cask "jupyterlab" do
version "3.6.1-2"
sha256 "dee2cefbee2000c53cea8d1d7d5b0411af983a481c99072384f0f6228a8aa3c6"
url "https://github.com/jupyterlab/jupyterlab-desktop/releases/download/v#{version}/JupyterLab-Setup-macOS.dmg"
name "JupyterLab App"
desc "Desktop application for JupyterLab"
homepage "https://github.com/jupyterlab/jupyterlab-desktop"
livecheck do
url :url
regex(%r{href=.*?/tag/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-desktop",
"~/Library/Logs/JupyterLab",
"~/Library/Preferences/com.electron.jupyterlab-desktop.plist",
"~/Library/Saved Application State/com.electron.jupyterlab-desktop.savedState",
]
end