-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
jupyterlab.rb
40 lines (34 loc) 路 1.41 KB
/
jupyterlab.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cask "jupyterlab" do
arch arm: "arm64", intel: "x64"
version "4.0.7-1"
sha256 arm: "eebea3f20d71c65d8d376ddb51a8df830f03223b24327d71084da36b3c34e9e5",
intel: "dd6f3f6f38705a447fd2b89ae5cdb2d362e63f2e9cb90de0cf2a004e47e4bb43"
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