BililiveRecorder/webui/build.sh

11 lines
375 B
Bash
Raw Normal View History

2022-06-04 03:39:33 +08:00
#!/usr/bin/env bash
set -ex
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
pushd "$SCRIPT_DIR/source"
export BASE_URL="/ui/"
2022-06-24 19:57:33 +08:00
export VITE_EMBEDDED_BUILD="true"
2022-06-04 03:39:33 +08:00
npm ci && npx vite build
2022-06-07 17:43:42 +08:00
rm --recursive ../../BililiveRecorder.Web/embeded/ui 2>/dev/null || true
2022-06-04 03:39:33 +08:00
cp --recursive dist ../../BililiveRecorder.Web/embeded/ui
popd