3 sha256 "e5df7722d0d851852dd9cc3449dd42d1fef3e74edda8c20dc04b38cb852b0fec"
5 url "https://github.com/variar/klogg/releases/download/v#{version.major_minor}/klogg-#{version}-OSX-Qt5.dmg"
7 desc "Fast, advanced log explorer"
8 homepage "https://github.com/variar/klogg"
12 regex(/^klogg[._-]v?(\d+(?:\.\d+)+)-OSX-Qt5\.dmg$/i)
13 strategy :github_latest do |json, regex|
14 json["assets"]&.map do |asset|
15 match = asset["name"]&.match(regex)
24 # shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
25 shimscript = "#{staged_path}/klogg.wrapper.sh"
26 binary shimscript, target: "klogg"
29 File.write shimscript, <<~EOS
31 exec '#{appdir}/klogg.app/Contents/MacOS/klogg' "$@"
36 "~/Library/Application Support/klogg",
37 "~/Library/Preferences/com.klogg.klogg.plist",
38 "~/Library/Preferences/com.klogg.klogg_session.plist",
39 "~/Library/Saved Application State/com.github.variar.klogg.savedState",