From 21babf967872aa7d4d4fa7fa80df5b45e962b355 Mon Sep 17 00:00:00 2001 From: Philipp Hoenisch Date: Fri, 21 May 2021 17:55:04 +1000 Subject: [PATCH] Support armv7 architecture for monero-wallet-rpc. This allows us to run swap cli on a raspberry pi 4. --- swap/src/monero/wallet_rpc.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swap/src/monero/wallet_rpc.rs b/swap/src/monero/wallet_rpc.rs index 69f09a97..853ffdab 100644 --- a/swap/src/monero/wallet_rpc.rs +++ b/swap/src/monero/wallet_rpc.rs @@ -20,9 +20,13 @@ compile_error!("unsupported operating system"); #[cfg(target_os = "macos")] const DOWNLOAD_URL: &str = "http://downloads.getmonero.org/cli/monero-mac-x64-v0.17.2.0.tar.bz2"; -#[cfg(target_os = "linux")] +#[cfg(all(target_os = "linux", target_arch = "x86_64"))] const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-linux-x64-v0.17.2.0.tar.bz2"; +#[cfg(all(target_os = "linux", target_arch = "arm"))] +const DOWNLOAD_URL: &str = + "https://downloads.getmonero.org/cli/monero-linux-armv7-v0.17.2.0.tar.bz2"; + #[cfg(target_os = "windows")] const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-win-x64-v0.17.2.0.zip";