mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-24 19:35:41 +08:00
4472ad5d53
Squashed commits: [485c2bd] fix: wrong BASE_URL
11 lines
355 B
Bash
Executable File
11 lines
355 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="./"
|
|
export VITE_EMBEDDED_BUILD="true"
|
|
npm ci && npx vite build
|
|
rm -R ../../BililiveRecorder.Web/embeded/ui 2>/dev/null || true
|
|
cp -R dist ../../BililiveRecorder.Web/embeded/ui
|
|
popd
|