excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / h / hhkb-studio.rb
bloba2ca945d0b83706d7c49e82138788894aa6b2056
1 cask "hhkb-studio" do
2   version "1.1.1"
3   sha256 "2938653604517bf664e51a5ae071e14d37dc46c7f368c8427b1f76d01b5e0413"
5   url "https://origin.pfultd.com/downloads/hhkbstudio/mac/HHKBStudiokeymapTool_#{version.no_dots}ma.dmg",
6       verified: "origin.pfultd.com/downloads/hhkbstudio/mac/"
7   name "Happy Hacking Keyboard Studio Keymap Tool"
8   desc "Customize keymap, shortcuts, and gesture pad behavior on HHKB Studio"
9   homepage "https://happyhackingkb.com/"
11   livecheck do
12     url "https://happyhackingkb.com/download/"
13     regex(%r{macOS\s*</td>.*?HHKBStudiokeymapTool[._-]v?\d+(?:\.\d+)*[^.]*?\.dmg.*?>\s*v?(\d+(?:\.\d+)+)\s*<}im)
14   end
16   depends_on macos: ">= :big_sur"
18   pkg "HHKBStudiokeymapTool_#{version.no_dots}ma.pkg"
20   uninstall quit:    "jp.co.pfu.hhkb-studio-keymap-tool",
21             pkgutil: "jp.co.pfu.hhkb-studio-keymap-tool.pkg.V#{version}",
22             delete:  [
23               "/Applications/hhkb-studio-keymap-tool*",
24               "/Applications/HHKBStudio/EULA_*.rtf",
25               "/Applications/HHKBStudio/OSS_License.txt",
26             ],
27             rmdir:   "/Applications/HHKBStudio"
29   zap trash: [
30         "~/Library/Application Support/hhkb-keymap-tool/Studio/*.log",
31         "~/Library/Preferences/jp.co.pfu.hhkb-studio-keymap-tool.plist",
32       ],
33       rmdir: "~/Library/Application Support/hhkb-keymap-tool/Studio/"
34 end