Files
Wojciech Kozyra 9bfa7c5674 improve deployment speed for android workers (#205)
improve deployment speed for android workers
2020-04-09 13:43:45 +02:00

36 lines
656 B
Bash
Executable File

#!/usr/bin/env bash
set -xeo pipefail
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. && pwd )"
if [ -z "$1" ]; then
echo "Please specify a platform to build"
exit 1
fi
PLATFORM=$1
yarn
yarn run build
if [ "$PLATFORM" = "android" ]; then
echo "shell apps will be fetched when building a Docker image"
elif [ "$PLATFORM" = "ios" ]; then
$ROOT_DIR/scripts/ios/fetchRemoteIosTarball.sh
fi
if [[ -z "${TARBALL}" ]]; then
echo "TARBALL is not set, building tarball skipped"
else
tar zcf "$TARBALL" \
workingdir \
build \
scripts \
package.json \
node_modules \
yarn.lock \
tsconfig.json \
gulpfile.js
fi