mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #166653 from SeanSith/gitbutler-0.10.6
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
cask "gitbutler" do
|
||||
arch arm: "aarch64", intel: "x86_64"
|
||||
arch_suffix = on_arch_conditional arm: "aarch64", intel: "x64"
|
||||
|
||||
version "0.10.6,619"
|
||||
sha256 arm: "9556c2aff50b3f1372828f067019179aa3e9b6ac3a88ee20ec837273b2202fe3",
|
||||
intel: "ac5908a954b384de21484472d7305da7c680776e6beddd84acd59674ad0c28c9"
|
||||
|
||||
url "https://releases.gitbutler.com/releases/release/#{version.csv.first}-#{version.csv.second}/macos/#{arch}/GitButler_#{version.csv.first}_#{arch_suffix}.dmg"
|
||||
name "GitButler"
|
||||
desc "Git client for simultaneous branches on top of your existing workflow"
|
||||
homepage "https://gitbutler.com/"
|
||||
|
||||
livecheck do
|
||||
url "https://app.gitbutler.com/downloads/release/darwin/#{arch}/dmg"
|
||||
regex(%r{/releases/release/(\d+(?:\.\d+)+)[._-](\d+)/macos}i)
|
||||
strategy :header_match do |headers|
|
||||
match = headers["location"]&.match(regex)
|
||||
|
||||
next if match.blank?
|
||||
|
||||
"#{match[1]},#{match[2]}"
|
||||
end
|
||||
end
|
||||
|
||||
depends_on macos: ">= :high_sierra"
|
||||
|
||||
app "GitButler.app"
|
||||
|
||||
zap trash: [
|
||||
"~/Library/Application Support/com.gitbutler.app",
|
||||
"~/Library/Saved Application State/com.gitbutler.app.savedState",
|
||||
"~/Library/WebKit/com.gitbutler.app",
|
||||
]
|
||||
end
|
||||
Reference in New Issue
Block a user