2020-06-30 11:26:22 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
2020-10-08 18:51:53 +01:00
|
|
|
if [ -z "$UI_CLONE_DIR" ]; then
|
|
|
|
|
echo "Must set UI_CLONE_DIR"; exit 1
|
|
|
|
|
fi
|
2020-09-28 17:15:28 +01:00
|
|
|
|
2020-10-08 18:51:53 +01:00
|
|
|
if [ -z "$UI_ASSETS_FILE" ]; then
|
|
|
|
|
echo "Must set UI_ASSETS_FILE"; exit 1
|
2020-09-28 17:15:28 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
(
|
2020-10-08 18:51:53 +01:00
|
|
|
cd "$UI_CLONE_DIR"
|
2021-04-09 15:29:33 -04:00
|
|
|
if ! (yarn install && yarn build); then
|
2021-04-08 20:54:32 -04:00
|
|
|
echo "Please ensure Node v14+ and Yarn v1.22.10+ are installed."
|
2020-09-28 17:15:28 +01:00
|
|
|
fi
|
|
|
|
|
)
|