homebrew-cask/Casks/w/writerside.rb

36 lines
1.2 KiB
Ruby

cask "writerside" do
arch arm: "-aarch64"
version "2024.1,241.16003.85"
sha256 arm: "d3bb0079046570dbfa5175b388e091b1567c024a7ec8587e7c8e5389cf1bd721",
intel: "a9ad84d95ad86b38f35bec25032235b907e19ddf3ef696404f4341650a7eb7b1"
url "https://download.jetbrains.com/writerside/writerside-#{version.csv.second}#{arch}.dmg"
name "Writerside"
desc "Technical writing environment"
homepage "https://www.jetbrains.com/writerside/"
livecheck do
url "https://data.services.jetbrains.com/products/releases?code=WRS&latest=true&type=eap"
strategy :json do |json|
json["WRS"].map do |release|
"#{release["version"]},#{release["build"]}"
end
end
end
auto_updates true
depends_on macos: ">= :catalina"
app "Writerside #{version.before_comma} EAP.app", target: "Writerside.app"
binary "#{appdir}/Writerside.app/Contents/MacOS/writerside"
zap trash: [
"~/Library/Application Support/JetBrains/Writerside#{version.major_minor}",
"~/Library/Caches/JetBrains/Writerside#{version.major_minor}",
"~/Library/Logs/JetBrains/Writerside#{version.major_minor}",
"~/Library/Preferences/com.jetbrains.writerside-EAP.plist",
"~/Library/Saved Application State/com.jetbrains.writerside-EAP.SavedState",
]
end