cake_wallet/scripts/macos/combine.sh
mkyq b2c603a47b
Fix gen scripts. Change default arch for macos application. (#901)
* Fix gen scripts. Change default arch for macos application.

* Add combine script for combine arm and x86_64 libs.

* - Update Mac version for release
- Update branch with main [skip ci]

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2023-05-01 16:36:46 +03:00

17 lines
No EOL
519 B
Bash
Executable file

#!/bin/sh
. ./config.sh
cd $EXTERNAL_DIR
mkdir -p $EXTERNAL_MACOS_LIB_DIR
EXTERNAL_DIR_MACOS_ARM=${EXTERNAL_DIR}/macos-arm/lib
EXTERNAL_DIR_MACOS_X86_64=${EXTERNAL_DIR}/macos-x86_64/lib
LIBS=(libboost.a libcrypto.a libssl.a libsodium.a libunbound.a libmonero.a)
for lib in ${LIBS[@]}; do
echo ${EXTERNAL_DIR_MACOS_ARM}/$lib
echo ${EXTERNAL_DIR_MACOS_X86_64}/$lib
lipo -create -arch arm64 ${EXTERNAL_DIR_MACOS_ARM}/$lib -arch x86_64 ${EXTERNAL_DIR_MACOS_X86_64}/$lib -output ${EXTERNAL_MACOS_LIB_DIR}/$lib;
done