cypress: add updateScript

This commit is contained in:
Robert K. Bell
2021-05-02 10:27:06 +10:00
parent ff6c27e72f
commit 57454d5d19
2 changed files with 12 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "1m52v6hhblrjji9c5885bn5qq0xlaw36krbmqfac7fhgsxmkxd2h";
};
passthru.updateScript = ./update.sh;
# don't remove runtime deps
dontPatchELF = true;

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts curl jq
set -euo pipefail
basedir="$(git rev-parse --show-toplevel)"
version="$(curl -sL https://cdn.cypress.io/desktop/ | jq '.version' --raw-output)"
cd "$basedir"
update-source-version cypress "$version"