From 66b0943d62cab0de5b7318c1c703fda4e9934f69 Mon Sep 17 00:00:00 2001 From: SarthakDev12 Date: Thu, 25 Jul 2024 16:14:31 +0530 Subject: [PATCH] add both variant x64 and arm64 in script --- download_binaries.sh | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/download_binaries.sh b/download_binaries.sh index eb40216d8..db12c6223 100755 --- a/download_binaries.sh +++ b/download_binaries.sh @@ -1,8 +1,10 @@ #!/bin/bash -ARCH=$1 BIN_DIR="electron/bins/" mkdir -p $BIN_DIR trader_version=$(poetry run python -c "import yaml; config = yaml.safe_load(open('templates/trader.yaml')); print(config['configuration']['trader_version'])") -curl -L -o "${BIN_DIR}aea_bin" "https://github.com/valory-xyz/trader/releases/download/${trader_version}/trader_bin_${ARCH}" + +curl -L -o "${BIN_DIR}aea_bin_x64" "https://github.com/valory-xyz/trader/releases/download/${trader_version}/trader_bin_x64" + +curl -L -o "${BIN_DIR}aea_bin_arm64" "https://github.com/valory-xyz/trader/releases/download/${trader_version}/trader_bin_arm64" diff --git a/package.json b/package.json index 2c75d489c..b116e7068 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "dev": "dotenv -e .env -- yarn start", "start:frontend": "cd frontend && yarn start", "test:frontend": "cd frontend && yarn test", - "download-binaries": "sh download_binaries.sh x64" + "download-binaries": "sh download_binaries.sh" }, "version": "0.1.0-rc71" }