41 lines
1.4 KiB
Ruby
41 lines
1.4 KiB
Ruby
cask "jupyterlab" do
|
|
arch arm: "arm64", intel: "x64"
|
|
|
|
version "4.0.5-1"
|
|
sha256 arm: "684f891e1eb54a435b6bb826d033502bd4500256352b76ec07216c4992f39165",
|
|
intel: "4af67926454d197be45cac8593ae7886783409bd07e56f320c8c1f2a167986b4"
|
|
|
|
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-desktop",
|
|
"~/Library/Logs/JupyterLab",
|
|
"~/Library/Preferences/com.electron.jupyterlab-desktop.plist",
|
|
"~/Library/Saved Application State/com.electron.jupyterlab-desktop.savedState",
|
|
]
|
|
end
|