#!/usr/bin/env bash # building cbindgen src/lib.rs -l c > rustwallet.h cargo lipo --release # moving files to the ios project proj=ios inc=./${proj}/include libs=./${proj}/libs #rm -rf ${inc} ${libs} #mkdir ${inc} #mkdir ${libs} targetBase=~/Documents/workspace/crypto/cocos_js/external/ios cp rustwallet.h ${targetBase}/include/rustwallet/rustwallet.h cp target/universal/release/librustwallet.a ${targetBase}/libs/librustwallet.a