cask "filebot" do arch arm: "arm64", intel: "x64" version "5.1.7" sha256 arm: "29cca94a795ec621842e984ff56d66c289874342eaddb813af0964446e8f5404", intel: "d8e28e64db826311523e8bbd1a4951937a5da1b6910827e940c9eeb0a38ff30d" url "https://get.filebot.net/filebot/FileBot_#{version}/FileBot_#{version}_#{arch}.app.tar.xz" name "FileBot" desc "Tool for organising and renaming movies, TV shows, anime or music" homepage "https://www.filebot.net/" livecheck do url "https://www.filebot.net/download.html" regex(/href=.*?FileBot[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.pkg/i) end no_autobump! because: :requires_manual_review depends_on macos: ">= :catalina" app "FileBot.app" binary "#{appdir}/FileBot.app/Contents/MacOS/filebot.sh", target: "filebot" bash_completion "#{appdir}/FileBot.app/Contents/Resources/bash_completion.d/filebot_completion", target: "filebot" zap trash: [ "~/Library/Application Scripts/net.filebot.FileBot", "~/Library/Containers/net.filebot.FileBot", "~/Library/Preferences/net.filebot.FileBot.app.plist", "~/Library/Preferences/net.filebot.ui.plist", "~/Library/Saved Application State/net.filebot.FileBot.app.savedState", "~/Library/Saved Application State/net.filebot.FileBot.savedState", ] end