From 53fc93ad6aa3a49e710dee6be2e417ff3074f527 Mon Sep 17 00:00:00 2001 From: saleel Date: Fri, 13 Dec 2024 22:21:18 +0000 Subject: [PATCH] add env --- aztec-up/bin/aztec-wallet | 3 +++ yarn-project/cli-wallet/src/bin/index.ts | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/aztec-up/bin/aztec-wallet b/aztec-up/bin/aztec-wallet index 675b8bfeda6..d67e5f8c99f 100755 --- a/aztec-up/bin/aztec-wallet +++ b/aztec-up/bin/aztec-wallet @@ -4,7 +4,10 @@ set -euo pipefail export SKIP_PORT_ASSIGNMENT=1 export WALLET_DATA_DIRECTORY=$(dirname $0)/wallet-data export ENV_VARS_TO_INJECT="WALLET_DATA_DIRECTORY SSH_AUTH_SOCK" +export BB_BINARY_PATH=$HOME/.bb/bb +export BB_WORKING_DIRECTORY=$HOME/.bb-workdir +mkdir -p $BB_WORKING_DIRECTORY mkdir -p $WALLET_DATA_DIRECTORY $(dirname $0)/.aztec-run aztecprotocol/cli-wallet $@ \ No newline at end of file diff --git a/yarn-project/cli-wallet/src/bin/index.ts b/yarn-project/cli-wallet/src/bin/index.ts index 0954a5123f2..cda770c1ae3 100644 --- a/yarn-project/cli-wallet/src/bin/index.ts +++ b/yarn-project/cli-wallet/src/bin/index.ts @@ -86,6 +86,16 @@ async function main() { .env('AZTEC_NODE_URL') .default(`http://${LOCALHOST}:8080`), ) + .addOption( + new Option('-b, --bb-binary-path ', 'Path to the BB binary') + .env('BB_BINARY_PATH') + .default(`$HOME/.bb/bb`), + ) + .addOption( + new Option('-w, --bb-working-directory ', 'Path to the BB working directory') + .env('BB_WORKING_DIRECTORY') + .default(`$HOME/.bb-workdir`), + ) .hook('preSubcommand', async command => { const { dataDir, remotePxe, nodeUrl } = command.optsWithGlobals();