Casks/f/filebot.rb
cask "filebot" do
arch arm: "arm64", intel: "x64"
version "5.1.5"
sha256 arm: "de401df6ef11432ae95a836d5ac210935a438673964416caf7881552f666dc3f",
intel: "7a6cb81d7d549723a241c40b48f3f53acb30732783abadfe2480516f3f2c013f"
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