40 lines
1.4 KiB
Ruby
40 lines
1.4 KiB
Ruby
cask "webstorm" do
|
|
arch arm: "-aarch64"
|
|
|
|
version "2024.1.4,241.17890.13"
|
|
sha256 arm: "37eaeeaf614e43215782c5af844e3df993cdc50e1370f5a6ecde562b3052218b",
|
|
intel: "d4a8a990f92a183911dd6f7a75c671b9851d77e9e269e9e2bc5e6973a0b9f691"
|
|
|
|
url "https://download.jetbrains.com/webstorm/WebStorm-#{version.csv.first}#{arch}.dmg"
|
|
name "WebStorm"
|
|
desc "JavaScript IDE"
|
|
homepage "https://www.jetbrains.com/webstorm/"
|
|
|
|
livecheck do
|
|
url "https://data.services.jetbrains.com/products/releases?code=WS&latest=true&type=release"
|
|
strategy :json do |json|
|
|
json["WS"].map do |release|
|
|
"#{release["version"]},#{release["build"]}"
|
|
end
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :high_sierra"
|
|
|
|
app "WebStorm.app"
|
|
binary "#{appdir}/WebStorm.app/Contents/MacOS/webstorm"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/JetBrains/WebStorm#{version.major_minor}",
|
|
"~/Library/Caches/com.apple.nsurlsessiond/Downloads/com.jetbrains.WebStorm",
|
|
"~/Library/Caches/JetBrains/WebStorm#{version.major_minor}",
|
|
"~/Library/Logs/JetBrains/WebStorm#{version.major_minor}",
|
|
"~/Library/Preferences/com.jetbrains.WebStorm.plist",
|
|
"~/Library/Preferences/jetbrains.webstorm.*.plist",
|
|
"~/Library/Preferences/WebStorm#{version.major_minor}",
|
|
"~/Library/Preferences/webstorm.plist",
|
|
"~/Library/Saved Application State/com.jetbrains.WebStorm.savedState",
|
|
]
|
|
end
|