31 lines
1.0 KiB
Ruby
31 lines
1.0 KiB
Ruby
cask "dropshare" do
|
|
version "5.37,5478"
|
|
sha256 "7d997fa48d2d9ca9151b4135dcf817e2a1a388987be21d3e6aba12e081a33f86"
|
|
|
|
url "https://d2wvuuix8c9e48.cloudfront.net/Dropshare#{version.major}-#{version.csv.second}.app.zip",
|
|
verified: "d2wvuuix8c9e48.cloudfront.net/"
|
|
name "Dropshare"
|
|
desc "File sharing solution"
|
|
homepage "https://dropshare.app/"
|
|
|
|
livecheck do
|
|
url "https://dropshare.app/sparkle/Dropshare#{version.major}.xml"
|
|
strategy :sparkle do |item|
|
|
"#{item.title[/(\d+(?:\.\d+)+)/i, 1]},#{item.version}"
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :monterey"
|
|
|
|
app "Dropshare #{version.major}.app"
|
|
binary "#{appdir}/Dropshare #{version.major}.app/Contents/Resources/ds.sh", target: "ds"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Dropshare #{version.major}",
|
|
"~/Library/Caches/net.mkswap.Dropshare#{version.major}",
|
|
"~/Library/Cookies/net.mkswap.Dropshare#{version.major}.binarycookies",
|
|
"~/Library/Logs/Dropshare #{version.major}",
|
|
"~/Library/Preferences/net.mkswap.Dropshare#{version.major}.plist",
|
|
]
|
|
end
|