[build] fix static upload path

Signed-off-by: Leo Chen <leo@harmony.one>
pull/2286/head
Leo Chen 5 years ago
parent a653dabe1e
commit 9cad7971b7
  1. 11
      scripts/go_executable_build.sh

@ -149,10 +149,6 @@ function upload
AWSCLI+=" --profile $PROFILE"
fi
for bin in "${!SRC[@]}"; do
[ -e $BINDIR/$bin ] && $AWSCLI s3 cp $BINDIR/$bin s3://${BUCKET}$FOLDER/$bin --acl public-read
done
if [ "$STATIC" != "true" ]; then
for lib in "${!LIB[@]}"; do
if [ -e ${LIB[$lib]} ]; then
@ -161,8 +157,15 @@ function upload
echo "!! MISSING ${LIB[$lib]} !!"
fi
done
else
FOLDER+='/static'
fi
for bin in "${!SRC[@]}"; do
[ -e $BINDIR/$bin ] && $AWSCLI s3 cp $BINDIR/$bin s3://${BUCKET}$FOLDER/$bin --acl public-read
done
[ -e $BINDIR/md5sum.txt ] && $AWSCLI s3 cp $BINDIR/md5sum.txt s3://${BUCKET}$FOLDER/md5sum.txt --acl public-read
}

Loading…
Cancel
Save