about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/office/onlyoffice-bin/update.sh
blob: d7b0bc106fa2d00de7f208b09b675eea90c69963 (plain) (blame)
1
2
3
4
5
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq common-updater-scripts

version="$(curl -sL "https://api.github.com/repos/ONLYOFFICE/DesktopEditors/releases?per_page=1" | jq -r ".[0].tag_name" | sed 's/^v//')"
update-source-version onlyoffice-bin "$version"