summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls Piņķis <emils@mullvad.net>2018-07-17 11:38:48 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-07-17 11:57:27 +0100
commit61a0a7b1849be68d403a8748e34e6675a9772739 (patch)
tree56145b2987480822bce897dab20f02a6e2eb3690
parent508fc0775e62f9361df2814cad5229b7706d4095 (diff)
downloadmullvadvpn-61a0a7b1849be68d403a8748e34e6675a9772739.tar.xz
mullvadvpn-61a0a7b1849be68d403a8748e34e6675a9772739.zip
Replace list-relay call with curl in build.sh
-rwxr-xr-xbuild.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 8bd7971a18..6183117920 100755
--- a/build.sh
+++ b/build.sh
@@ -86,7 +86,7 @@ sed -i.bak \
mullvad-daemon/Cargo.toml \
mullvad-cli/Cargo.toml \
mullvad-problem-report/Cargo.toml
-
+
SEMVER_ARRAY=($(echo $SEMVER_VERSION | sed -r 's/[.-]+/ /g'))
SEMVER_MAJOR=${SEMVER_ARRAY[0]}
@@ -131,7 +131,11 @@ if [[ "$(uname -s)" != "MINGW"* ]]; then
fi
echo "Updating relay list..."
-MULLVAD_RESOURCE_DIR="$SCRIPT_DIR/dist-assets/" ./target/release/list-relays > dist-assets/relays.json
+curl -X POST \
+ -H "Content-Type: application/json" \
+ -d '{"jsonrpc": "2.0", "id": "0", "method": "relay_list"}' \
+ https://api.mullvad.net/rpc/ \
+ -o dist-assets/relays.json
echo "Installing JavaScript dependencies..."
yarn install