CakeWallet/scripts/ios/build_mwebd.sh
cyan 2078407608
Migrate to .xcframework (#2006)
* add libmd to linked libraries

* ios 16 fixes, new moneroc, simulator support

* update app version [skip ci]

* update monero.com as well [skip ci]

* migrate away from {Monero,Wownero,Zano}Wallet.framework
Generate .xcframework dynamically
Fix mweb requiring manual steps in xcode

* fix app_config.sh when .dylib are not yet present

* fix typo in model_generator.sh

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2025-02-17 15:53:10 +02:00

20 lines
No EOL
492 B
Bash
Executable file

#!/bin/bash
if [[ "$1" == "--dont-install" ]]; then
echo "Skipping Go installation as per --dont-install flag"
else
# install go > 1.23:
brew install go
export PATH=$PATH:~/go/bin
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
fi
# build mwebd:
git clone https://github.com/ltcmweb/mwebd
cd mwebd
git reset --hard 555349415f76a42ec5c76152b64c4ab9aabc448f
gomobile bind -target=ios .
mv -fn ./Mwebd.xcframework ../../../cw_mweb/ios/
# cleanup:
cd ..
rm -rf mwebd