Merge pull request #163687 from bevanjkay/bump-linear-linear-1.22.1

linear-linear: update `livecheck` strategy, use versioned `url`
This commit is contained in:
BrewTestBot
2024-01-03 09:37:12 +00:00
committed by GitHub
+7 -11
View File
@@ -1,23 +1,19 @@
cask "linear-linear" do
arch arm: "arm64", intel: "x64"
version "1.22.1,2309297qs4n1ask"
sha256 :no_check
version "1.22.1"
sha256 arm: "41529ad0de3400f5606880a5054d530077e43c4c930795d64eae7a3e6d6fa694",
intel: "4f12aa0bd8477b356c6717a5ced28be309a76fd8dae1c06967c27799a2f7a597"
url "https://desktop.linear.app/mac/dmg/#{arch}"
url "https://download.todesktop.com/200315glz2793v6/Linear%20#{version}-#{arch}-mac.zip",
verified: "download.todesktop.com/200315glz2793v6/"
name "Linear"
desc "App to manage software development and track bugs"
homepage "https://linear.app/"
livecheck do
url :url
regex(/Linear[\s._-]?v?(\d+(?:\.\d+)+)[\s._-]*Build[\s._-]*([^-\s]+)[._-]#{arch}\.dmg/i)
strategy :header_match do |headers|
match = headers["content-disposition"].match(regex)
next if match.blank?
"#{match[1]},#{match[2]}"
end
url "https://download.todesktop.com/200315glz2793v6/latest-mac.yml"
strategy :electron_builder
end
auto_updates true