@@ -347,8 +347,10 @@ bitcoin_tarball_install()
347347 sudo mkdir " ${BITCOIN_INSTALL_BIN_DESTINATION} " ||
348348 throw_error " Unable to create directory ${BITCOIN_INSTALL_BIN_DESTINATION} ."
349349 for bitcoin_executable in bitcoind bitcoin-qt bitcoin-cli bitcoin-tx bitcoin-util bitcoin-wallet; do
350- [ " ${TARGET_KERNEL} " = ' Darwin' ] && [ " ${TARGET_ARCHITECTURE} " = ' arm64' ] &&
350+ if [ " ${TARGET_KERNEL} " = ' Darwin' ] && [ " ${TARGET_ARCHITECTURE} " = ' arm64' ] &&
351+ ! is_arm64_test_bitcoin_signed " ${target_bitcoin_version} " ; then
351352 codesign -s - " ${BITCOIN_INSTALL_BIN_SOURCE} /${bitcoin_executable} "
353+ fi
352354 sudo install -c \
353355 " ${BITCOIN_INSTALL_BIN_SOURCE} /${bitcoin_executable} " \
354356 " ${BITCOIN_INSTALL_BIN_DESTINATION} /"
@@ -386,12 +388,12 @@ get_oldest_version()
386388
387389is_arm64_test_bitcoin_signed ()
388390{
389- readonly BITCOIN_VERSION_TO_CHECK =" $1 "
390- readonly ARM64_SIGNED_BINARY_VERSION=' 28.2'
391+ BITCOIN_VERSION_TO_COMPARE =" $1 "
392+ ARM64_SIGNED_BINARY_VERSION=' 28.2'
391393 [ " $# " -ne 1 ] &&
392394 throw_error " Invalid use of is_arm64_test_bitcoin_signed."
393395 # test_bitcoin binary is already signed on Bitcoin Core 28.2 and later
394- if [ " $( get_oldest_version " ${BITCOIN_VERSION_TO_CHECK } " " ${ARM64_SIGNED_BINARY_VERSION} " ) " \
396+ if [ " $( get_oldest_version " ${BITCOIN_VERSION_TO_COMPARE } " " ${ARM64_SIGNED_BINARY_VERSION} " ) " \
395397 = " ${ARM64_SIGNED_BINARY_VERSION} " ]; then
396398 return 0
397399 else
@@ -1532,10 +1534,11 @@ readonly VALID_BITCOIN_VERSION_LIST='0.9.5 0.10.0 0.10.1 0.10.2 0.10.3 0.10.4 \
15321534 0.11.0 0.11.1 0.11.2 0.12.0 0.12.1 0.13.0 0.13.1 0.13.2 0.14.3 0.15.2 \
15331535 0.16.3 0.17.0 0.17.0.1 0.17.1 0.17.2 0.18.0 0.18.1 0.19.0 0.19.0.1 0.19.1 \
15341536 0.20.0 0.20.1 0.20.2 0.21.0 0.21.1 0.21.2 22.0 22.1 23.0 23.1 23.2 24.0 \
1535- 24.0.1 24.1 24.2 25.0 25.1 25.2 26.0 26.1 26.2 27.0 27.1 27.2 28.0 28.1'
1537+ 24.0.1 24.1 24.2 25.0 25.1 25.2 26.0 26.1 26.2 27.0 27.1 27.2 28.0 28.1 \
1538+ 28.2'
15361539
15371540# Bump this variable for new Bitcoin Core releases
1538- target_bitcoin_version=' 28.1 '
1541+ target_bitcoin_version=' 28.2 '
15391542
15401543# Instantiate the parameter variables
15411544compile_bitcoin_flag=' false'
0 commit comments