[ts] Fix up player resources copying in build script.

This commit is contained in:
Mario Zechner 2021-08-26 14:32:10 +02:00
parent 58fe4ed229
commit 17c0cb00c2

View File

@ -16,7 +16,7 @@ ls build/*.js build/*.ts | awk '{print "unexpand -t 4 ", $0, " > /tmp/e; mv /tmp
if ! [ -z "$TS_UPDATE_URL" ] && ! [ -z "$BRANCH" ]; if ! [ -z "$TS_UPDATE_URL" ] && ! [ -z "$BRANCH" ];
then then
echo "Deploying spine-ts $BRANCH artifacts" echo "Deploying spine-ts $BRANCH artifacts"
zip -j spine-ts.zip build/* player/css/spine-player.css player/example/external/* zip -j spine-ts.zip build/* spine-player/css/spine-player.css spine-player/example/external/*
curl -F "file=@spine-ts.zip" "$TS_UPDATE_URL$BRANCH" curl -F "file=@spine-ts.zip" "$TS_UPDATE_URL$BRANCH"
else else
echo "Not deploying artifacts. TS_UPDATE_URL and/or BRANCH not set." echo "Not deploying artifacts. TS_UPDATE_URL and/or BRANCH not set."