-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
filebot.rb
31 lines (26 loc) 路 1.22 KB
/
filebot.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cask "filebot" do
arch arm: "arm64", intel: "x64"
version "5.1.3"
sha256 arm: "2b9fc1cf0349eadac549f26e3509fdee2e6d3296d12d85c5004be4ec1360fc99",
intel: "e9971b8a412deb08e7d8bccdb05b415eb099a9948bcab5127dad811b39ad7b27"
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