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

cypress: add updateScript
This commit is contained in:
Sandro
2021-05-02 15:15:17 +02:00
committed by GitHub
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"