cask "filebot" do arch arm: "arm64", intel: "x64" version "5.1.6" sha256 arm: "abab420f18ef537df6e460e0f87fc2814eb4f9e41eee9938728ea4d7280c8cdf", intel: "d9457eb1be1f4f7b2e94c60c65d1cbaa41129da2922bf7ebd193d12cdc1acf29" 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 app "FileBot.app" binary "#{appdir}/FileBot.app/Contents/MacOS/filebot.sh", target: "filebot" binary "#{appdir}/FileBot.app/Contents/Resources/bash_completion.d/filebot_completion", target: "#{HOMEBREW_PREFIX}/etc/bash_completion.d/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