homebrew-cask/Casks/filebot.rb

22 lines
782 B
Ruby

cask "filebot" do
version "4.9.2"
sha256 "15c92853503f17958e7fbbe5d4640458021327126a4b4c9410a9d3d8086e02dc"
url "https://get.filebot.net/filebot/FileBot_#{version}/FileBot_#{version}.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+)+)\.app\.t/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/Preferences/net.filebot.ui.plist"
end