cask "wolfram-engine" do version "14.2.0.0" sha256 "1284cece5384e4c9b44c76b316104c0ffc8f4431b5ec994774d413a85e621763" url "https://files.wolframcdn.com/packages/Homebrew/#{version}/WolframEngine_#{version.major_minor_patch}_MAC.dmg", verified: "files.wolframcdn.com/packages/Homebrew/" name "Wolfram Engine" desc "Evaluator for the Wolfram Language" homepage "https://www.wolfram.com/engine/" livecheck do url "https://files.wolframcdn.com/packages/Homebrew/latest.txt" regex(/^(\d+(?:\.\d+)+)$/i) end no_autobump! because: :requires_manual_review depends_on macos: ">= :monterey" app "Wolfram Engine.app" binary "#{appdir}/Wolfram Engine.app/Contents/Resources/Wolfram Player.app/Contents/MacOS/wolframscript" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.wolfram.mathematica.player.sfl*", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.wolfram.wolframengine.sfl*", "~/Library/Application Support/Wolfram", "~/Library/Caches/Wolfram", "~/Library/Logs/DiagnosticReports/WolframKernel*", "~/Library/Logs/Wolfram", "~/Library/WolframEngine", ], rmdir: "~/Documents/Wolfram Player" caveats do free_license "https://www.wolfram.com/engine/free-license/" end end