1 cask "radio-silence" do
3 sha256 "8641185630145365408de24b12ca8307b817c4b51d8f32b267904dcfd16a06de"
5 url "https://radiosilenceapp.com/downloads/Radio_Silence_#{version}.pkg"
7 desc "Network monitor and firewall"
8 homepage "https://radiosilenceapp.com/"
11 url "https://radiosilenceapp.com/update"
12 regex(%r{href=.*?/Radio_Silence_(\d+(?:\.\d+)*)\.pkg}i)
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"],
26 "com.radiosilenceapp.agent",
27 "com.radiosilenceapp.nke",
28 "com.radiosilenceapp.trial",
30 quit: "com.radiosilenceapp.client",
31 kext: "com.radiosilenceapp.nke.filter",
32 pkgutil: "com.radiosilenceapp.*"
34 zap trash: "~/Library/Application Support/Radio Silence"