Merge pull request #110562 from r-k-b/cypress/updateScript

cypress: add updateScript

authored by Sandro and committed by GitHub df3c94e6 c6d2f34e

+12
+2
pkgs/development/web/cypress/default.nix
··· 9 9 sha256 = "1m52v6hhblrjji9c5885bn5qq0xlaw36krbmqfac7fhgsxmkxd2h"; 10 10 }; 11 11 12 + passthru.updateScript = ./update.sh; 13 + 12 14 # don't remove runtime deps 13 15 dontPatchELF = true; 14 16
+10
pkgs/development/web/cypress/update.sh
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p common-updater-scripts curl jq 3 + 4 + set -euo pipefail 5 + 6 + basedir="$(git rev-parse --show-toplevel)" 7 + version="$(curl -sL https://cdn.cypress.io/desktop/ | jq '.version' --raw-output)" 8 + 9 + cd "$basedir" 10 + update-source-version cypress "$version"