mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-19 01:04:43 +00:00
workflow and script updates
This commit is contained in:
parent
5a2a207aec
commit
80d56bc400
3 changed files with 21 additions and 8 deletions
5
.github/workflows/pr_test_build.yml
vendored
5
.github/workflows/pr_test_build.yml
vendored
|
@ -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 $_
|
||||
|
||||
|
|
|
@ -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
15
scripts/ios/build_mwebd.sh
Executable 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
|
Loading…
Reference in a new issue