This commit is contained in:
Matthew Fosse 2024-06-28 11:47:58 -07:00
parent f04f17375b
commit 9ec108ab82

View file

@ -34,7 +34,9 @@ jobs:
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz 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 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:/usr/local/go/bin
export PATH=$PATH:~/go/bin
go install golang.org/x/mobile/cmd/gomobile@latest go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
# install mwebd: # install mwebd:
cd /opt/android/cake_wallet cd /opt/android/cake_wallet
@ -42,9 +44,8 @@ jobs:
cd /opt/android/cake_wallet/mwebd cd /opt/android/cake_wallet/mwebd
go get github.com/ltcmweb/mwebd/cmd/mwebd go get github.com/ltcmweb/mwebd/cmd/mwebd
go install github.com/ltcmweb/mwebd/cmd/mwebd go install github.com/ltcmweb/mwebd/cmd/mwebd
go get golang.org/x/mobile/cmd/gobind # go get golang.org/x/mobile/cmd/gobind
go get golang.org/x/mobile/cmd/gomobile # go get golang.org/x/mobile/cmd/gomobile
gomobile init
gomobile bind -target=android -androidapi 21 github.com/ltcmweb/mwebd gomobile bind -target=android -androidapi 21 github.com/ltcmweb/mwebd
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/ mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
mv ./mwebd.aar $_ mv ./mwebd.aar $_