Skip to content

Commit

Permalink
Merge pull request #170731 from yhirano/hhkb-studio-keymap-tool
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored Apr 10, 2024
2 parents 0445cb1 + c4eb081 commit ce08f3b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Casks/h/hhkb-studio.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
cask "hhkb-studio" do
version "1.0.4"
sha256 "29bd562e6ec1f116d2da0ac8f4fe6d0cdce95ad8f4dc62e0d9778b0814b90b4a"

url "https://origin.pfultd.com/downloads/hhkbstudio/mac/HHKBStudiokeymapTool_#{version.no_dots}ma.dmg",
verified: "origin.pfultd.com/downloads/hhkbstudio/mac/"
name "Happy Hacking Keyboard Studio Keymap Tool"
desc "Customize keymap, shortcuts, and gesture pad behavior on HHKB Studio"
homepage "https://happyhackingkb.com/"

livecheck do
url "https://happyhackingkb.com/download/"
regex(/macOS\s+:\s+Version\s+(\d+(?:\.\d+)+)/i)
strategy :page_match do |page, regex|
match = page.match(regex)
(match[1]).to_s
end
end

depends_on macos: ">= :big_sur"

pkg "HHKBStudiokeymapTool_#{version.no_dots}ma.pkg"

uninstall quit: "jp.co.pfu.hhkb-studio-keymap-tool",
pkgutil: "jp.co.pfu.hhkb-studio-keymap-tool.pkg.V#{version}",
delete: [
"/Applications/hhkb-studio-keymap-tool*",
"/Applications/HHKBStudio/EULA_*.rtf",
"/Applications/HHKBStudio/OSS_License.txt",
],
rmdir: "/Applications/HHKBStudio"

zap trash: [
"~/Library/Application Support/hhkb-keymap-tool/Studio/*.log",
"~/Library/Preferences/jp.co.pfu.hhkb-studio-keymap-tool.plist",
],
rmdir: "~/Library/Application Support/hhkb-keymap-tool/Studio/"
end

0 comments on commit ce08f3b

Please sign in to comment.