phinze/homebrew-cask

View on GitHub
Casks/s/snapmaker-luban.rb

Summary

Maintainability
A
0 mins
Test Coverage
cask "snapmaker-luban" do
  arch arm: "-arm64", intel: "-x64"

  version "4.13.0"
  sha256 arm:   "54188d3696947c19d540eecc9c7aa3ce3bdd01f4878df71406ba9908e11df233",
         intel: "144d0e7e30a35c4cb01dbef1f1c5b573265b2e693dbeb6fcd80712e1ec7304a4"

  url "https://github.com/snapmaker/luban/releases/download/v#{version}/Snapmaker-Luban-#{version}-mac#{arch}.dmg",
      verified: "github.com/snapmaker/luban/"
  name "Snapmaker Luban"
  desc "3D printing software"
  homepage "https://snapmaker.com/snapmaker-luban"

  livecheck do
    url :url
    strategy :github_latest
  end

  auto_updates true

  app "Snapmaker Luban.app"

  zap trash: [
    "~/Library/Caches/com.snapmaker.luban",
    "~/Library/Caches/com.snapmaker.luban.ShipIt",
    "~/Library/Preferences/ByHost/com.snapmaker.luban.ShipIt.*.plist",
    "~/Library/Preferences/com.snapmaker.luban.helper.plist",
    "~/Library/Preferences/com.snapmaker.luban.plist",
    "~/Library/Saved Application State/com.snapmaker.luban.savedState",
  ]
end