cypress: add updateScript
This commit is contained in:
parent
ff6c27e72f
commit
57454d5d19
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1m52v6hhblrjji9c5885bn5qq0xlaw36krbmqfac7fhgsxmkxd2h";
|
sha256 = "1m52v6hhblrjji9c5885bn5qq0xlaw36krbmqfac7fhgsxmkxd2h";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru.updateScript = ./update.sh;
|
||||||
|
|
||||||
# don't remove runtime deps
|
# don't remove runtime deps
|
||||||
dontPatchELF = true;
|
dontPatchELF = true;
|
||||||
|
|
||||||
|
10
pkgs/development/web/cypress/update.sh
Executable file
10
pkgs/development/web/cypress/update.sh
Executable 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"
|
Loading…
x
Reference in New Issue
Block a user