From 89912105734175e0f2a5e53eb6165b12055cc2c1 Mon Sep 17 00:00:00 2001 From: edouardparis Date: Thu, 2 May 2024 11:59:06 +0200 Subject: [PATCH] Add macos arm64 binary to bitcoind download --- gui/src/bitcoind.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gui/src/bitcoind.rs b/gui/src/bitcoind.rs index d8ac7c782..c0308a0d7 100644 --- a/gui/src/bitcoind.rs +++ b/gui/src/bitcoind.rs @@ -30,6 +30,9 @@ pub const VERSION: &str = VERSIONS[0]; #[cfg(all(target_os = "macos", target_arch = "x86_64"))] pub const SHA256SUM: &str = "acb50edd20692a9d023de12da573b64ca0fd9b4e9a2b88d1251020a3022b0f27"; +#[cfg(all(target_os = "macos", target_arch = "aarch64"))] +pub const SHA256SUM: &str = "8a8e415763b7ffd5988153cf03967d812eca629016dd3b0ddf6da3ab6f4a3621"; + #[cfg(all(target_os = "linux", target_arch = "x86_64"))] pub const SHA256SUM: &str = "a5b7d206384a8100058d3f2e2f02123a8e49e83f523499e70e86e121a4897d5b"; @@ -41,6 +44,11 @@ pub fn download_filename() -> String { format!("bitcoin-{}-x86_64-apple-darwin.tar.gz", &VERSION) } +#[cfg(all(target_os = "macos", target_arch = "aarch64"))] +pub fn download_filename() -> String { + format!("bitcoin-{}-arm64-apple-darwin.tar.gz", &VERSION) +} + #[cfg(all(target_os = "linux", target_arch = "x86_64"))] fn download_filename() -> String { format!("bitcoin-{}-x86_64-linux-gnu.tar.gz", &VERSION)