excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / r / radio-silence.rb
blob52d54a4c32247f9bf147a2b977c44039e6bd55a7
1 cask "radio-silence" do
2   version "3.3"
3   sha256 "8641185630145365408de24b12ca8307b817c4b51d8f32b267904dcfd16a06de"
5   url "https://radiosilenceapp.com/downloads/Radio_Silence_#{version}.pkg"
6   name "Radio Silence"
7   desc "Network monitor and firewall"
8   homepage "https://radiosilenceapp.com/"
10   livecheck do
11     url "https://radiosilenceapp.com/update"
12     regex(%r{href=.*?/Radio_Silence_(\d+(?:\.\d+)*)\.pkg}i)
13   end
15   pkg "Radio_Silence_#{version}.pkg"
17   # We intentionally unload the kext twice as a workaround
18   # See https://github.com/Homebrew/homebrew-cask/pull/1802#issuecomment-34171151
20   uninstall early_script: {
21               executable:   "/sbin/kextunload",
22               args:         ["-b", "com.radiosilenceapp.nke.filter"],
23               must_succeed: false,
24             },
25             launchctl:    [
26               "com.radiosilenceapp.agent",
27               "com.radiosilenceapp.nke",
28               "com.radiosilenceapp.trial",
29             ],
30             quit:         "com.radiosilenceapp.client",
31             kext:         "com.radiosilenceapp.nke.filter",
32             pkgutil:      "com.radiosilenceapp.*"
34   zap trash: "~/Library/Application Support/Radio Silence"
35 end