cask "devknife" do
  version "1.16.0"
  sha256 "ce91719791e25e191822126840a7638930c76cc528bc7bc6396eb8c030d79c3a"

  url "https://files.solotuna.com/devknife/DevKnife-#{version}.dmg",
      verified: "files.solotuna.com/devknife/"
  name "DevKnife"
  desc "Collection of handy developer tools"
  homepage "https://devknife.app/"

  livecheck do
    url "https://files.solotuna.com/devknife/appcast.xml"
    strategy :sparkle, &:short_version
  end

  auto_updates true
  depends_on macos: :sonoma

  app "DevKnife.app"

  zap trash: [
    "~/Library/Application Support/com.solotuna.devknife",
    "~/Library/Preferences/com.solotuna.devknife.plist",
  ]
end
