41 lines
1.4 KiB
Ruby
41 lines
1.4 KiB
Ruby
cask "jupyterlab" do
|
|
arch arm: "arm64", intel: "x64"
|
|
|
|
version "4.1.5-1"
|
|
sha256 arm: "a4083e5364cb6ae9e32194023968bae906a548f9eb62d5d5d2ebad4470ba7d6e",
|
|
intel: "86d1ab7bd5d59067ebbef0c7e3ef823270136469f3269a024ff463ebec0ac11b"
|
|
|
|
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
|