filebot: add passthru.updateScript

This commit is contained in:
Felix Schröter
2023-05-31 14:42:49 +02:00
parent 6091ca33eb
commit 07404f6de2
@@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, coreutils, openjdk17, makeWrapper, autoPatchelfHook
, zlib, libzen, libmediainfo, curlWithGnuTls, libmms, glib
, genericUpdater, writeShellScript
}:
let
@@ -43,6 +44,13 @@ in stdenv.mkDerivation rec {
ln -s $out/opt/filebot.sh $out/bin/filebot
'';
passthru.updateScript = genericUpdater {
versionLister = writeShellScript "filebot-versionLister" ''
curl -s https://www.filebot.net \
| sed -rne 's,^.*FileBot_([0-9]*\.[0-9]+\.[0-9]+)-portable.tar.xz.*,\1,p'
'';
};
meta = with lib; {
description = "The ultimate TV and Movie Renamer";
longDescription = ''