-
Notifications
You must be signed in to change notification settings - Fork 2
/
testcontainers-desktop.rb
41 lines (34 loc) · 1.3 KB
/
testcontainers-desktop.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
41
cask "testcontainers-desktop" do
version "1.18.0"
sha256 "7f88c921320c409bba254476a888780293f62cee6c5920bc6ad740a73a4409e8"
url "https://app.testcontainers.cloud/download/testcontainers-desktop_#{version}_darwin_universal.dmg",
user_agent: "brew-cask"
name "Testcontainers Desktop"
desc "Tescontainers desktop application for local testing and development"
homepage "https://app.testcontainers.cloud/"
livecheck do
url "https://app.testcontainers.cloud/api/versions"
strategy :page_match do |page|
JSON.parse(page)["latest"]
end
end
auto_updates true
conflicts_with cask: "testcontainers-cloud-desktop"
app "Testcontainers Desktop.app"
postflight do
system_command "open",
args: ["#{appdir}/Testcontainers Desktop.app"]
end
uninstall quit: "com.atomicjar.desktop",
delete: [
"~/Library/Caches/AtomicJar/testcontainers.cloud.desktop/agent.lock",
"~/Library/Caches/AtomicJar/testcontainers.cloud.desktop/tcc-notification.png",
]
zap delete: "~/Library/LaunchAgents/testcontainers.desktop.plist",
trash: [
"~/.config/testcontainers/cloud.properties",
"~/.config/testcontainers/services",
"~/Library/Caches/AtomicJar",
"~/Library/Logs/AtomicJar",
]
end