forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathairparrot.rb
28 lines (23 loc) · 968 Bytes
/
airparrot.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
cask "airparrot" do
version "3.1.2"
sha256 "fac0deb4339ed1979b91cc24fe15e5b291800e0ef64e0dbe84d55dd1dc9492bc"
url "https://download.airsquirrels.com/AirParrot#{version.major}/Mac/AirParrot-#{version}.dmg"
name "AirParrot"
desc "Tool to wirelessly mirror the screen or stream media files"
homepage "https://www.airsquirrels.com/airparrot/"
livecheck do
url "https://www.airsquirrels.com/airparrot/download"
strategy :page_match
regex(%r{href=.*?/AirParrot-(\d+(?:\.\d+)*)\.dmg}i)
end
app "AirParrot #{version.major}.app"
uninstall kext: [
"com.squirrels.driver.AirParrotSpeakers",
"/Library/Extensions/AirParrotDriver.kext",
"/Library/Extensions/APExtFramebuffer.kext",
"/System/Library/Extensions/AirParrotDriver.kext",
"/System/Library/Extensions/APExtFramebuffer.kext",
],
quit: "com.squirrels.AirParrot-#{version.major}"
zap trash: "~/Library/Preferences/com.squirrels.AirParrot-*.plist"
end