CakeWallet/scripts/ios/build_mwebd.sh
Omar Hatem 78f0df1748
Update mweb (#2076)
* update mweb

* update mweb (synchronization should be 2x faster)

* update mweb version
2025-03-26 17:36:13 +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.24:
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 f75cb9edef07d03360ee2d33e6edae4243a890b1
gomobile bind -target=ios .
mv -fn ./Mwebd.xcframework ../../../cw_mweb/ios/
# cleanup:
cd ..
rm -rf mwebd