diff --git a/.github/workflows/pr_test_build.yml b/.github/workflows/pr_test_build.yml index 74cefc4ec..1080e4085 100644 --- a/.github/workflows/pr_test_build.yml +++ b/.github/workflows/pr_test_build.yml @@ -109,7 +109,8 @@ jobs: # build mwebd: cd /opt/android/cake_wallet git clone https://github.com/ltcmweb/mwebd - gomobile bind -target=android -androidapi 21 ./mwebd + cd /opt/android/cake_wallet/mwebd + gomobile bind -target=android -androidapi 21 . 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 0bc770d51..d3a3bf091 100755 --- a/scripts/android/build_mwebd.sh +++ b/scripts/android/build_mwebd.sh @@ -7,9 +7,10 @@ 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 +cd mwebd gomobile bind -target=android -androidapi 21 . -mkdir -p ../../cw_mweb/android/libs/ +mkdir -p ../../../cw_mweb/android/libs/ mv ./mwebd.aar $_ # cleanup: +cd .. rm -rf mwebd \ No newline at end of file diff --git a/scripts/ios/build_mwebd.sh b/scripts/ios/build_mwebd.sh index 4aab85142..ae0834e39 100755 --- a/scripts/ios/build_mwebd.sh +++ b/scripts/ios/build_mwebd.sh @@ -7,9 +7,10 @@ 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 +cd mwebd gomobile bind -target=ios ./mwebd -mkdir -p ../../cw_mweb/android/libs/ -mv ./Mwebd.xcframework ../../ios/ +mkdir -p ../../../cw_mweb/android/libs/ +mv ./Mwebd.xcframework ../../../ios/ # cleanup: +cd .. rm -rf mwebd \ No newline at end of file