Skip to content

Commit

Permalink
profilecreator: add livecheck (Homebrew#102453)
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Mar 23, 2021
1 parent 3e0c94b commit 23452e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Casks/profilecreator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
sha256 "a4a1b45bfaa6bc83aac7ef532981aaa0c807cd17fbfb1f157980144e5d309aea"

url "https://github.com/erikberglund/ProfileCreator/releases/download/v#{version.before_comma}/ProfileCreator_v#{version.before_comma}-#{version.after_comma}.dmg"
appcast "https://github.com/erikberglund/ProfileCreator/releases.atom"
name "ProfileCreator"
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)
"#{match[1]},#{match[2]}"
end
end

depends_on macos: ">= :sierra"

app "ProfileCreator.app"
Expand Down
1 change: 1 addition & 0 deletions audit_exceptions/github_prerelease_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"my-budget": "all",
"nuclear": "all",
"pock": "all",
"profilecreator": "all",
"syntax-highlight": "all",
"toggl-track": "all",
"xit": "all"
Expand Down

0 comments on commit 23452e3

Please sign in to comment.