Skip to content

Commit

Permalink
Merge pull request #188393 from Homebrew/update-colemak
Browse files Browse the repository at this point in the history
colemak-*: add livecheck
  • Loading branch information
samford authored Oct 14, 2024
2 parents 9390eeb + 8dbf0e2 commit 0b46ade
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Casks/c/colemak-dh.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cask "colemak-dh" do
version "1.0"
version "2.0.0"
sha256 :no_check

url "https://github.com/ColemakMods/mod-dh/archive/refs/heads/master.tar.gz",
Expand All @@ -8,6 +8,13 @@
desc "Colemak mod for more comfortable typing (DH variant)"
homepage "https://colemakmods.github.io/mod-dh/"

livecheck do
url "https://raw.githubusercontent.com/ColemakMods/mod-dh/master/macOS/Colemak%20DH.bundle/Contents/Info.plist"
strategy :xml do |xml|
xml.elements["//key[text()='CFBundleVersion']"]&.next_element&.text&.strip
end
end

keyboard_layout "mod-dh-master/macOS/Colemak DH.bundle"

# No zap stanza required
Expand Down
9 changes: 8 additions & 1 deletion Casks/c/colemak-dhk.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cask "colemak-dhk" do
version "1.0"
version "2.0.0"
sha256 :no_check

url "https://github.com/ColemakMods/mod-dh/archive/refs/heads/master.tar.gz",
Expand All @@ -8,6 +8,13 @@
desc "Colemak mod for more comfortable typing (DHk variant)"
homepage "https://colemakmods.github.io/mod-dh/"

livecheck do
url "https://raw.githubusercontent.com/ColemakMods/mod-dh/master/macOS/Colemak%20DHk.bundle/Contents/Info.plist"
strategy :xml do |xml|
xml.elements["//key[text()='CFBundleVersion']"]&.next_element&.text&.strip
end
end

keyboard_layout "mod-dh-master/macOS/Colemak DHk.bundle"

# No zap stanza required
Expand Down

0 comments on commit 0b46ade

Please sign in to comment.