diff --git a/scripts/ios_build.sh b/scripts/ios_build.sh index 453af08..12051ad 100755 --- a/scripts/ios_build.sh +++ b/scripts/ios_build.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # building -# cbindgen src/lib.rs -l c > rustwallet.h +cbindgen src/lib.rs -l c > rustwallet.h cargo lipo --release # moving files to the ios project @@ -13,5 +13,7 @@ rm -rf ${inc} ${libs} mkdir ${inc} mkdir ${libs} -cp rustwallet.h ${inc} -cp target/universal/release/librustwallet.a ${libs} +targetBase=~/Documents/workspace/cocos/cocos2d-x/external/ios + +cp rustwallet.h ${targetBase}/include/rustwallet/rustwallet.h +cp target/universal/release/librustwallet.a ${targetBase}/libs/librustwallet.a