cask "julia-app" do arch arm: "aarch64", intel: "x64" livecheck_arch = on_arch_conditional arm: "aarch64", intel: "x86_64" version "1.11.5" sha256 arm: "eec35fee04782d076fcb1aee48b023027dc26c08f172cd3f54fcaa5559069deb", intel: "e8ce10435224dec0f4c6923f006ce441a1265375d4309509ee246221d995c09e" url "https://julialang-s3.julialang.org/bin/mac/#{arch}/#{version.major_minor}/julia-#{version}-mac#{arch.delete_prefix("x")}.dmg" name "Julia" desc "Programming language for technical computing" homepage "https://julialang.org/" livecheck do url "https://julialang-s3.julialang.org/bin/versions.json" strategy :json do |json| json.map do |version, release| next unless release["stable"] next unless release["files"].any? { |file| file["os"] == "mac" && file["arch"] == livecheck_arch } version end end end app "Julia-#{version.major_minor}.app" binary "#{appdir}/Julia-#{version.major_minor}.app/Contents/Resources/julia/bin/julia" manpage "#{appdir}/Julia-#{version.major_minor}.app/Contents/Resources/julia/share/man/man1/julia.1" zap trash: [ "~/.julia", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.julia.sfl*", "~/Library/Logs/Julia", "~/Library/Preferences/com.github.Julia.plist", "~/Library/Preferences/julia.plist", "~/Library/Saved Application State/com.github.Julia.savedState", ] end