Update hhkb.rb

This commit is contained in:
Miccal Matthews
2023-09-09 13:57:13 +08:00
committed by GitHub
parent cb265165f7
commit 7fb26f3356
+5 -9
View File
@@ -11,9 +11,10 @@ cask "hhkb" do
livecheck do
url "https://happyhackingkb.com/download/"
regex(/macOS\s+:\s+Version\s+(\d+(?:\.\d+)+)/i)
strategy :page_match
end
depends_on macos: ">= :mojave"
pkg "HHKBkeymapTool_#{version.no_dots}ma.pkg"
uninstall pkgutil: "jp.co.pfu.hhkb-keymap-tool.pkg.V#{version}",
@@ -23,18 +24,13 @@ cask "hhkb" do
"#{appdir}/HHKB/EULA_*.rtf",
"#{appdir}/HHKB/OSS_License.txt",
],
rmdir: [
"#{appdir}/HHKB",
]
rmdir: "#{appdir}/HHKB"
zap trash: [
"~/Library/Application Support/hhkb-keymap-tool/*.log",
"/private/var/db/receipts/jp.co.pfu.hhkb-keymap-tool.pkg.V#{version}.bom",
"/private/var/db/receipts/jp.co.pfu.hhkb-keymap-tool.pkg.V#{version}.plist",
"~/Library/Preferences/jp.co.pfu.hhkb-keymap-tool.plist",
],
rmdir: [
"~/Library/Application Support/hhkb-keymap-tool",
]
rmdir: "~/Library/Application Support/hhkb-keymap-tool"
caveats do
requires_rosetta