* initial homebrew formula
This commit is contained in:
parent
253fd37ff8
commit
9fa8823f77
|
@ -2,9 +2,9 @@ require "formula"
|
||||||
|
|
||||||
class Filebot < Formula
|
class Filebot < Formula
|
||||||
homepage "http://www.filebot.net/"
|
homepage "http://www.filebot.net/"
|
||||||
url "http://sourceforge.net/projects/filebot/files/filebot/FileBot_4.1/FileBot_4.1.app.tar.gz"
|
url "https://sourceforge.net/projects/filebot/files/filebot/HEAD/FileBot_4.1.1/FileBot_4.1.app.tar.gz"
|
||||||
sha1 "1a0363b9a7bfa2bbd7d6c81d22a0c8e154c8ce81"
|
sha1 "7a4e80f3d2bdb82afaa00e8350eba0c8888b8fe8"
|
||||||
version "4.1"
|
version "4.1.1"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Create .app bundle in prefix
|
# Create .app bundle in prefix
|
||||||
|
@ -14,11 +14,13 @@ class Filebot < Formula
|
||||||
bin.install_symlink prefix/'FileBot.app/Contents/MacOS/filebot.sh' => 'filebot'
|
bin.install_symlink prefix/'FileBot.app/Contents/MacOS/filebot.sh' => 'filebot'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def caveats
|
||||||
|
"FileBot requires Java 8. Run `java -version` to verify."
|
||||||
|
end
|
||||||
|
|
||||||
def post_install
|
def post_install
|
||||||
# Clearing cache and temporary files
|
# Clearing cache and temporary files
|
||||||
system "#{bin}/filebot", "-clear-cache"
|
system "#{bin}/filebot", "-clear-cache"
|
||||||
# Initializing Cache
|
|
||||||
system "#{bin}/filebot", "-script", "g:MediaDetection.warmupCachedResources()"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in New Issue