2019-08-26 18:07:24 +01:00
|
|
|
#!/usr/bin/env nix-shell
|
2019-10-20 21:32:31 +01:00
|
|
|
#!nix-shell -I nixpkgs=../../../../../ -i bash -p wget yarn2nix
|
2019-08-26 18:07:24 +01:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
if [ "$#" -ne 1 ] || [[ "$1" == -* ]]; then
|
|
|
|
echo "Regenerates the Yarn dependency lock files for the riot-desktop package."
|
|
|
|
echo "Usage: $0 <git release tag>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
RIOT_WEB_SRC="https://raw.githubusercontent.com/vector-im/riot-web/$1"
|
|
|
|
|
|
|
|
wget "$RIOT_WEB_SRC/electron_app/package.json" -O riot-desktop-package.json
|
|
|
|
wget "$RIOT_WEB_SRC/electron_app/yarn.lock" -O riot-desktop-yarndeps.lock
|
|
|
|
yarn2nix --lockfile=riot-desktop-yarndeps.lock > riot-desktop-yarndeps.nix
|
|
|
|
rm riot-desktop-yarndeps.lock
|