Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Casks/i/intiface-central.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
cask "intiface-central" do
version "3.0.3,39"
sha256 "c3605043d8a1bbb30a2ce5873e07b5d0d34395f2ad09cc1b82d29a2932ff357e"

url "https://github.com/intiface/intiface-central/releases/download/v#{version.csv.first}#{"%2B#{version.csv.second}" if version.csv.second}/intiface-central-v#{version.csv.first}-macos-universal.dmg"
name "Intiface Central"
desc "Frontend application for the Buttplug sex toy control library"
homepage "https://github.com/intiface/intiface-central"

livecheck do
url :url
regex(/^v?(\d+(?:\.\d+)+)\+(\d+)$/i)
strategy :github_latest do |json, regex|
match = json["tag_name"]&.match(regex)
next if match.blank?

match[2].present? ? "#{match[1]},#{match[2]}" : match[1]
end
end

depends_on macos: ">= :big_sur"

app "Intiface Central.app"

zap trash: [
"~/Library/Application Scripts/com.nonpolynomial.intifacecentral",
"~/Library/Containers/com.nonpolynomial.intifacecentral",
]
end
Loading