homebrew-cask/Casks/profilecreator.rb

30 lines
938 B
Ruby

cask "profilecreator" do
version "0.3.2,201907171032-beta"
sha256 "a4a1b45bfaa6bc83aac7ef532981aaa0c807cd17fbfb1f157980144e5d309aea"
url "https://github.com/erikberglund/ProfileCreator/releases/download/v#{version.before_comma}/ProfileCreator_v#{version.before_comma}-#{version.after_comma}.dmg"
name "ProfileCreator"
desc "Create standard or customized configuration profiles"
homepage "https://github.com/erikberglund/ProfileCreator"
livecheck do
url :url
strategy :github_latest do |page|
match = page.match(%r{href=.*?/ProfileCreator_v(\d+(?:\.\d+)*)-(.*?)\.dmg}i)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
depends_on macos: ">= :sierra"
app "ProfileCreator.app"
zap trash: [
"~/Library/Application Support/ProfileCreator",
"~/Library/Application Support/ProfilePayloads",
"~/Library/Preferences/com.github.erikberglund.ProfileCreator.plist",
]
end