cake_wallet/scripts/ios/build_mwebd.sh

14 lines
306 B
Bash
Raw Normal View History

2024-07-26 08:24:24 +00:00
#!/bin/bash
2024-07-17 16:13:41 +00:00
# install go > 1.21:
2024-07-26 08:24:24 +00:00
brew install go
2024-07-17 16:13:41 +00:00
export PATH=$PATH:~/go/bin
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
# build mwebd:
git clone https://github.com/ltcmweb/mwebd
2024-07-17 16:51:30 +00:00
cd mwebd
2024-07-24 16:52:26 +00:00
gomobile bind -target=ios .
2024-07-26 08:24:24 +00:00
mv -fn ./Mwebd.xcframework ../../../ios/
2024-07-17 16:13:41 +00:00
# cleanup:
2024-07-17 16:51:30 +00:00
cd ..
2024-07-17 16:13:41 +00:00
rm -rf mwebd