mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-25 17:11:22 -05:00
Merge #522
522: Add support for arm architecture to Swap CLI r=da-kami a=bonomat Tested locally on my RPI4 Co-authored-by: Philipp Hoenisch <philipp@hoenisch.at>
This commit is contained in:
commit
284733d359
@ -18,13 +18,17 @@ use tokio_util::io::StreamReader;
|
|||||||
compile_error!("unsupported operating system");
|
compile_error!("unsupported operating system");
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
const DOWNLOAD_URL: &str = "http://downloads.getmonero.org/cli/monero-mac-x64-v0.17.1.9.tar.bz2";
|
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.1.9.tar.bz2";
|
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")]
|
#[cfg(target_os = "windows")]
|
||||||
const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-win-x64-v0.17.1.9.zip";
|
const DOWNLOAD_URL: &str = "https://downloads.getmonero.org/cli/monero-win-x64-v0.17.2.0.zip";
|
||||||
|
|
||||||
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
const PACKED_FILE: &str = "monero-wallet-rpc";
|
const PACKED_FILE: &str = "monero-wallet-rpc";
|
||||||
@ -85,8 +89,9 @@ impl WalletRpc {
|
|||||||
.parse::<u64>()?;
|
.parse::<u64>()?;
|
||||||
|
|
||||||
tracing::info!(
|
tracing::info!(
|
||||||
"Downloading monero-wallet-rpc ({})",
|
"Downloading monero-wallet-rpc ({}) from {}",
|
||||||
content_length.big_byte(2)
|
content_length.big_byte(2),
|
||||||
|
DOWNLOAD_URL
|
||||||
);
|
);
|
||||||
|
|
||||||
let byte_stream = response
|
let byte_stream = response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user