CakeWallet/scripts/android/build_mwebd.sh

16 lines
489 B
Bash
Raw Normal View History

# install go > 1.21:
2024-07-24 22:01:14 +03:00
#wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
#sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/go/bin
2024-07-24 22:01:14 +03:00
#go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
# build mwebd:
2024-06-08 14:26:48 +02:00
git clone https://github.com/ltcmweb/mwebd
2024-07-17 09:51:30 -07:00
cd mwebd
2024-07-17 09:13:41 -07:00
gomobile bind -target=android -androidapi 21 .
2024-07-17 09:51:30 -07:00
mkdir -p ../../../cw_mweb/android/libs/
mv ./mwebd.aar $_
2024-07-17 09:13:41 -07:00
# cleanup:
2024-07-17 09:51:30 -07:00
cd ..
2024-07-17 09:13:41 -07:00
rm -rf mwebd