mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
19 lines
No EOL
638 B
Bash
Executable file
19 lines
No EOL
638 B
Bash
Executable file
if [[ "$1" == "--dont-install" ]]; then
|
|
echo "Skipping Go installation as per --dont-install flag"
|
|
else
|
|
# install go > 1.23:
|
|
wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz
|
|
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.23.1.linux-amd64.tar.gz
|
|
export PATH=$PATH:/usr/local/go/bin
|
|
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=android -androidapi 21 .
|
|
mkdir -p ../../../cw_mweb/android/libs/
|
|
cp ./mwebd.aar $_ |