homebrew-cask/Casks/syncthing.rb

29 lines
846 B
Ruby

cask "syncthing" do
version "1.18.5-1"
sha256 "194eb77965c3024d765f8ef946a521aaa466ae90c20b695ebd44143255f05152"
url "https://github.com/syncthing/syncthing-macos/releases/download/v#{version}/Syncthing-#{version}.dmg",
verified: "github.com/syncthing/syncthing-macos/"
name "Syncthing"
desc "Real time file synchronization software"
homepage "https://syncthing.net/"
livecheck do
url :url
strategy :git
regex(/^v?(\d+(?:\.\d+)*(?:-\d+)?)$/i)
end
auto_updates true
depends_on macos: ">= :sierra"
app "Syncthing.app"
zap trash: [
"~/Library/Application Support/Syncthing-macOS",
"~/Library/Caches/com.github.xor-gate.syncthing-macosx",
"~/Library/Cookies/com.github.xor-gate.syncthing-macosx.binarycookies",
"~/Library/Preferences/com.github.xor-gate.syncthing-macosx.plist",
]
end