Unverified Commit c1840294 authored by Olli Helenius's avatar Olli Helenius
Browse files

mattermost-desktop: fix version matching in the update script

Avoid matching pre- and nightly releases.
parent dffcaa4d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -86,7 +86,9 @@ buildNpmPackage rec {
      # Invoking with `--version` insists on being able to write to a log file.
      command = "env HOME=/tmp ${meta.mainProgram} --version";
    };
    updateScript = nix-update-script { };
    updateScript = nix-update-script {
      extraArgs = [ "--version-regex=^(\\d+\\.\\d+\\.\\d+)$" ];
    };
  };

  meta = {