phinze/homebrew-cask

View on GitHub
Casks/l/lycheeslicer.rb

Summary

Maintainability
A
40 mins
Test Coverage
cask "lycheeslicer" do
  version "6.0.2"
  sha256 "f2d8fe2d30304a377824cb3b5a50896badf285e66d126ac613085b22292a417f"

  url "https://mango-lychee.nyc3.cdn.digitaloceanspaces.com/LycheeSlicer-#{version}.dmg",
      verified: "mango-lychee.nyc3.cdn.digitaloceanspaces.com/"
  name "Lychee Slicer"
  desc "Slicer for Resin 3D printers"
  homepage "https://mango3d.io/"

  livecheck do
    url "https://mango3d.io/downloads/"
    regex(/version:\s*v?(\d+(?:\.\d+)+)/i)
  end

  app "LycheeSlicer.app"

  zap trash: [
    "~/Library/Application Support/LycheeSlicer",
    "~/Library/Application Support/LycheeSlicerconfig.json",
    "~/Library/Logs/LycheeSlicer",
    "~/Library/Preferences/com.mango3d.lychee.plist",
    "~/Library/Saved Application State/com.mango3d.lychee.savedState",
  ]
end