Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (29 sloc)
1.26 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cask "filebot" do | |
arch = Hardware::CPU.intel? ? "x64" : "arm64" | |
version "4.9.6" | |
if Hardware::CPU.intel? | |
sha256 "38935215702be042aae44effad9cd5e82139ece8ecdb55ee86515b875064873a" | |
else | |
sha256 "e1804ce4e402dcdda5a8417294d7317217a5eca57569f4fa47f9f701a0a7c61e" | |
end | |
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 |