Files
homebrew-cask/Casks/a/attachecase.rb
Mike McQuaid aa461148bb Move all remaining casks to sharded subdirectories.
The migration of `orka.rb` and then `o*.rb` has worked well without
complaint so: let's move everything else, too.
2023-08-09 12:08:38 +01:00

30 lines
858 B
Ruby

cask "attachecase" do
version "4.2.1"
sha256 "24cae251e12d8c673b8b22f137f39cb7c4fb2c4a317074fee6090c03e81696f4"
url "https://hibara.org/software/attachecase/download/?f=AtcMac#{version.no_dots}.zip",
user_agent: :fake
name "AttacheCase"
desc "Utility for encrypting/decrypting files and directories"
homepage "https://hibara.org/software/attachecase/"
livecheck do
url "https://hibara.org/software/attachecase/json/attachecase_mac_history_en.json"
regex(/AtcMacv?(\d)(\d)(\d)\.zip/i)
strategy :page_match do |page, regex|
page.scan(regex).map do |match|
"#{match[0]}.#{match[1]}.#{match[2]}"
end
end
end
depends_on macos: ">= :mojave"
app "AttacheCase.app"
zap trash: [
"~/Library/Application Scripts/dev.hibara.attachecase",
"~/Library/Containers/dev.hibara.attachecase",
]
end