phinze/homebrew-cask

View on GitHub
Casks/g/gitkraken-on-premise-serverless.rb

Summary

Maintainability
A
1 hr
Test Coverage
cask "gitkraken-on-premise-serverless" do
  arch arm: "darwin-arm64", intel: "darwin"

  version "10.3.0"
  sha256 arm:   "0a57ef96b9ff0ac87e7ca8344485a94847517d4886114c8d4e4dd9c27caca070",
         intel: "ff051a710fa142422a03cbcd60cad29bf939b54668d3f5b37033c538833ddf7d"

  url "https://release.axocdn.com/#{arch}-standalone/GitKraken-v#{version}.zip",
      verified: "release.axocdn.com/"
  name "GitKraken Serverless"
  desc "Git client focusing on productivity"
  homepage "https://www.gitkraken.com/git-client/on-premise"

  livecheck do
    url "https://www.gitkraken.com/download-on-premise-serverless"
    regex(/Latest\srelease:\s(\d+(?:\.\d+)+)/i)
  end

  auto_updates true
  conflicts_with cask: "gitkraken"
  depends_on macos: ">= :el_capitan"

  app "GitKraken.app"

  uninstall quit: "com.axosoft.gitkraken"

  zap trash: [
    "~/.gitkraken",
    "~/Library/Application Support/com.axosoft.gitkraken.ShipIt",
    "~/Library/Application Support/GitKraken",
    "~/Library/Caches/com.axosoft.gitkraken",
    "~/Library/Caches/com.axosoft.gitkraken.ShipIt",
    "~/Library/Caches/GitKraken",
    "~/Library/Cookies/com.axosoft.gitkraken.binarycookies",
    "~/Library/HTTPStorages/com.axosoft.gitkraken",
    "~/Library/Preferences/com.axosoft.gitkraken.helper.plist",
    "~/Library/Preferences/com.axosoft.gitkraken.plist",
    "~/Library/Saved Application State/com.axosoft.gitkraken.savedState",
  ]
end