excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / webstorm.rb
blobc425b578d06952eb2d69e86e554b6b75d5ba7ea4
1 cask "webstorm" do
2   arch arm: "-aarch64"
4   version "2024.3,243.21565.180"
5   sha256 arm:   "b3fed87c00746694419b0da71baf71ebb10a8c3803c5a1502c689ff9ce7831f4",
6          intel: "fccac67e93d69ad98a36b0b8c092913fbc8bfc06b1cb7ee3932bad4394f78c78"
8   url "https://download.jetbrains.com/webstorm/WebStorm-#{version.csv.first}#{arch}.dmg"
9   name "WebStorm"
10   desc "JavaScript IDE"
11   homepage "https://www.jetbrains.com/webstorm/"
13   livecheck do
14     url "https://data.services.jetbrains.com/products/releases?code=WS&latest=true&type=release"
15     strategy :json do |json|
16       json["WS"]&.map do |release|
17         version = release["version"]
18         build = release["build"]
19         next if version.blank? || build.blank?
21         "#{version},#{build}"
22       end
23     end
24   end
26   auto_updates true
27   depends_on macos: ">= :high_sierra"
29   app "WebStorm.app"
30   binary "#{appdir}/WebStorm.app/Contents/MacOS/webstorm"
32   zap trash: [
33     "~/Library/Application Support/JetBrains/WebStorm#{version.major_minor}",
34     "~/Library/Caches/com.apple.nsurlsessiond/Downloads/com.jetbrains.WebStorm",
35     "~/Library/Caches/JetBrains/WebStorm#{version.major_minor}",
36     "~/Library/Logs/JetBrains/WebStorm#{version.major_minor}",
37     "~/Library/Preferences/com.jetbrains.WebStorm.plist",
38     "~/Library/Preferences/jetbrains.webstorm.*.plist",
39     "~/Library/Preferences/WebStorm#{version.major_minor}",
40     "~/Library/Preferences/webstorm.plist",
41     "~/Library/Saved Application State/com.jetbrains.WebStorm.savedState",
42   ]
43 end