about summary refs log tree commit diff
path: root/pkgs/development/web/cypress/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/web/cypress/update.sh')
-rwxr-xr-xpkgs/development/web/cypress/update.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/web/cypress/update.sh b/pkgs/development/web/cypress/update.sh
new file mode 100755
index 0000000000000..f8389b517c325
--- /dev/null
+++ b/pkgs/development/web/cypress/update.sh
@@ -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"