homebrew-cask/Casks/d/draw-things.rb

22 lines
565 B
Ruby

cask "draw-things" do
version "1.20231212.0-3ec1467b"
sha256 "3ec1467be497f5379485f936f8c0e5b545fca3db2acda6594b6f95d19e701d14"
url "https://static.drawthings.ai/DrawThings-#{version}.zip"
name "Draw Things"
desc "Run Stable Diffusion locally"
homepage "https://drawthings.ai/"
livecheck do
url :homepage
regex(/href=.*?DrawThings[._-]v?(\d+(?:\.\d+)+(?:-[\da-f]*)?)\.zip/i)
end
app "Draw Things.app"
zap trash: [
"~/Library/Application Scripts/com.liuliu.draw-things",
"~/Library/Containers/com.liuliu.draw-things",
]
end