Commit 9ae63e93 authored by FliegendeWurst's avatar FliegendeWurst
Browse files

tutanota-desktop: add update script

parent 25d2d3a1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
{ lib
, appimageTools
, fetchurl
, gitUpdater
}:

appimageTools.wrapType2 rec {
@@ -24,6 +25,12 @@ appimageTools.wrapType2 rec {
        --replace 'Exec=AppRun' 'Exec=${pname}'
    '';

  passthru.updateScript = gitUpdater {
    url = "https://github.com/tutao/tutanota";
    rev-prefix = "tutanota-desktop-release-";
    allowedVersions = ".+\\.[0-9]{6}\\..+";
  };

  meta = with lib; {
    description = "Tuta official desktop client";
    homepage = "https://tuta.com/";