Merge pull request #110562 from r-k-b/cypress/updateScript
cypress: add updateScript
This commit is contained in:
commit
df3c94e6c8
|
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1m52v6hhblrjji9c5885bn5qq0xlaw36krbmqfac7fhgsxmkxd2h";
|
||||
};
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
# don't remove runtime deps
|
||||
dontPatchELF = true;
|
||||
|
||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue