Skip to content
Prev Previous commit
Next Next commit
Fix Android build uploading.
  • Loading branch information
jonsimantov committed Oct 8, 2020
commit 97c27a3717393aa7e91bbf0b2c81edcf0332785c
7 changes: 4 additions & 3 deletions build_scripts/android/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex

buildpath=$1
sourcepath=$2
Expand Down Expand Up @@ -55,12 +55,13 @@ set -x

if [[ $(uname) == "Linux" ]] || [[ $(uname) == "Darwin" ]]; then
# Turn buildpath into an absolute path for use later with rsync.
buildpath=$( cd "${buildpath}" ; pwd -P )
absbuildpath=$( mkdir -p "${buildpath}"; cd "${buildpath}" ; pwd -P )
# Use rsync to copy the relevent paths to the destination directory.
rsync -aR "${paths[@]}" "${buildpath}/"
rsync -aR "${paths[@]}" "${absbuildpath}/"
else
# rsync has to be specifically installed on windows bash (including github runners)
# Also, rsync with absolute destination path doesn't work on Windows.
# Using a simple copy instead of rsync on Windows.
mkdir -p "${buildpath}"
cp -R --parents "${paths[@]}" "${buildpath}"
fi
2 changes: 1 addition & 1 deletion build_scripts/ios/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -ex

buildpath=$1
sourcepath=$2
Expand Down