diff --git a/.github/workflows/pr_test_build.yml b/.github/workflows/pr_test_build.yml index 630318d6e..74cefc4ec 100644 --- a/.github/workflows/pr_test_build.yml +++ b/.github/workflows/pr_test_build.yml @@ -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 $_ diff --git a/scripts/android/build_mwebd.sh b/scripts/android/build_mwebd.sh index d94f06e03..0bc770d51 100755 --- a/scripts/android/build_mwebd.sh +++ b/scripts/android/build_mwebd.sh @@ -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 \ No newline at end of file diff --git a/scripts/ios/build_mwebd.sh b/scripts/ios/build_mwebd.sh new file mode 100755 index 000000000..4aab85142 --- /dev/null +++ b/scripts/ios/build_mwebd.sh @@ -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 \ No newline at end of file