BililiveRecorder/webui/build.sh
2022-06-07 17:43:42 +08:00

11 lines
369 B
Bash
Executable File

#!/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/"
export EMBEDED_BUILD="true"
npm ci && npx vite build
rm --recursive ../../BililiveRecorder.Web/embeded/ui 2>/dev/null || true
cp --recursive dist ../../BililiveRecorder.Web/embeded/ui
popd