1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00
filebot/installer/homebrew/filebot.rb

30 lines
729 B
Ruby
Raw Normal View History

require "formula"
class Filebot < Formula
homepage "http://www.filebot.net/"
2014-06-25 07:36:31 -04:00
url "https://sourceforge.net/projects/filebot/files/filebot/HEAD/FileBot_4.1.1/FileBot_4.1.app.tar.gz"
sha1 "7a4e80f3d2bdb82afaa00e8350eba0c8888b8fe8"
version "4.1.1"
def install
# Create .app bundle in prefix
(prefix/'FileBot.app').install Dir['*']
# Create filebot symlink in bin
bin.install_symlink prefix/'FileBot.app/Contents/MacOS/filebot.sh' => 'filebot'
end
2014-06-25 07:36:31 -04:00
def caveats
"FileBot requires Java 8. Run `java -version` to verify."
end
def post_install
# Clearing cache and temporary files
system "#{bin}/filebot", "-clear-cache"
end
test do
system "#{bin}/filebot", "-version"
end
end