* warmup cached resources on first install of new version

This commit is contained in:
Reinhard Pointner 2014-06-19 08:56:07 +00:00
parent b5e83e98a9
commit aaf03996fb
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@ 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 post_install
system "#{bin}/filebot", "-script", "g:MediaDetection.warmupCachedResources()"
end
test do test do
system "#{bin}/filebot", "-version" system "#{bin}/filebot", "-version"
end end