cask "filebot" do arch arm: "arm64", intel: "x64" version "5.1.1" sha256 arm: "b23d7b07f92eeb0e589f0e08e21be9e5f704f973a0222de115a9cd02eac6750f", intel: "329c48a28ca69b6d7d72b0c46efdfc2f0ec2822ee53663dca94a1a4324c12641" url "https://get.filebot.net/filebot/FileBot_#{version}/FileBot_#{version}_#{arch}.app.tar.xz" name "FileBot" desc "Tool for organizing 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