change build script for ios

This commit is contained in:
cebgcontract 2022-12-21 17:58:54 +08:00
parent 2908cbf9f2
commit 464612819a

View File

@ -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