forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheimdall-suite.rb
30 lines (24 loc) · 1003 Bytes
/
heimdall-suite.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
cask "heimdall-suite" do
version "1.4.0"
sha256 "4b283fc7bc331f8ec84031c939ef9d2aa71bb8fe6be6d3434dd268d76f7c0e60"
url "https://bitbucket.org/benjamin_dobell/heimdall/downloads/heimdall-suite-#{version}-mac.dmg",
verified: "bitbucket.org/benjamin_dobell/heimdall/downloads/"
name "Heimdall Suite"
desc "Flash firmware onto Samsung mobile devices"
homepage "https://glassechidna.com.au/heimdall/"
livecheck do
url "https://glassechidna.com.au/heimdall/#downloads"
regex(%r{href=.*?/heimdall[._-]suite[._-]v?(\d+(?:\.\d+)+)[._-]mac\.dmg}i)
end
pkg "Heimdall Suite #{version}.pkg"
uninstall kext: "au.com.glassechidna.heimdall_usb_shield",
pkgutil: "au.com.glassechidna.HeimdallSuite",
delete: "/Applications/heimdall-frontend.app"
zap trash: [
"~/Library/Preferences/com.yourcompany.heimdall-frontend.plist",
"~/Library/Saved Application State/com.yourcompany.heimdall-frontend.savedState",
]
caveats do
kext
end
end