cask "liteide" do
  version "38.4"
  sha256 "f1c650216d6280e705ae76a99de1421e567840719c2d35d45b9f3aa9c037cae7"

  url "https://github.com/visualfc/liteide/releases/download/x#{version}/liteidex#{version}-macos-qt5.15.16.zip"
  name "LiteIDE"
  desc "Go IDE"
  homepage "https://github.com/visualfc/liteide"

  livecheck do
    url :url
    regex(/(?:x[._\s-]?)(\d+(?:\.\d+)+)/i)
    strategy :github_latest
  end

  disable! date: "2026-09-01", because: :fails_gatekeeper_check

  depends_on :macos

  app "liteide/LiteIDE.app"

  # No zap stanza required
  caveats do
    requires_rosetta
  end
end
