workflow and script updates

This commit is contained in:
Matthew Fosse 2024-07-17 09:13:41 -07:00
parent 5a2a207aec
commit 80d56bc400
3 changed files with 21 additions and 8 deletions

View file

@ -109,10 +109,7 @@ jobs:
# build mwebd:
cd /opt/android/cake_wallet
git clone https://github.com/ltcmweb/mwebd
cd /opt/android/cake_wallet/mwebd
go get github.com/ltcmweb/mwebd/cmd/mwebd
go install github.com/ltcmweb/mwebd/cmd/mwebd
gomobile bind -target=android -androidapi 21 github.com/ltcmweb/mwebd
gomobile bind -target=android -androidapi 21 ./mwebd
mkdir -p /opt/android/cake_wallet/cw_mweb/android/libs/
mv ./mwebd.aar $_

View file

@ -7,8 +7,9 @@ go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
# build mwebd:
git clone https://github.com/ltcmweb/mwebd
cd mwebd
go install github.com/ltcmweb/mwebd/cmd/mwebd
gomobile bind -target=android -androidapi 21 github.com/ltcmweb/mwebd
mkdir -p ../../../cw_mweb/android/libs/
# go install github.com/ltcmweb/mwebd/cmd/mwebd
gomobile bind -target=android -androidapi 21 .
mkdir -p ../../cw_mweb/android/libs/
mv ./mwebd.aar $_
# cleanup:
rm -rf mwebd

15
scripts/ios/build_mwebd.sh Executable file
View file

@ -0,0 +1,15 @@
# install go > 1.21:
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
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
# build mwebd:
git clone https://github.com/ltcmweb/mwebd
# go install github.com/ltcmweb/mwebd/cmd/mwebd
gomobile bind -target=ios ./mwebd
mkdir -p ../../cw_mweb/android/libs/
mv ./Mwebd.xcframework ../../ios/
# cleanup:
rm -rf mwebd