Update bundle script

With the change in status-go mobile the name of the artifact as changed
and currently the script is looking at the wrong file.
I have also added an option to not clean the repo (only if specified),
as I rarely want to clean the repo myself, and I have always to comment
it out.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Andrea Maria Piana 2019-02-19 08:28:49 +01:00
parent bcbaeb2cd9
commit fecb9bed7e
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,9 @@ fi
set -euf set -euf
# Ensure we start with a clean state, so as to e.g., not reuse old native status-go bindings # Ensure we start with a clean state, so as to e.g., not reuse old native status-go bindings
make clean if [ -z $DONT_CLEAN ] ; then
make clean
fi
for platform in "$@"; do for platform in "$@"; do
case $platform in case $platform in
@ -75,7 +77,7 @@ for platform in "$@"; do
target=$STATUS_REACT_HOME/modules/react-native-status/android/libs/status-im/status-go/local target=$STATUS_REACT_HOME/modules/react-native-status/android/libs/status-im/status-go/local
[ -d $target ] || mkdir -p $target [ -d $target ] || mkdir -p $target
# Copy over framework: # Copy over framework:
cp -R $STATUS_GO_HOME/build/bin/statusgo-android-16.aar $target/status-go-local.aar cp -R $STATUS_GO_HOME/build/bin/statusgo.aar $target/status-go-local.aar
# It might also be a good idea to print something custom so you can easily tell # It might also be a good idea to print something custom so you can easily tell
# the difference between an old and new version of status-go. # the difference between an old and new version of status-go.