update webui to v2.0.3

This commit is contained in:
Shugen 2022-06-24 19:57:33 +08:00
parent 123bc3c97a
commit 5179df456b
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
Set-PSDebug -Trace 1 Set-PSDebug -Trace 1
Push-Location "$PSScriptRoot/source" Push-Location "$PSScriptRoot/source"
$env:BASE_URL = "/ui/" $env:BASE_URL = "/ui/"
$env:EMBEDED_BUILD = "true" $env:VITE_EMBEDDED_BUILD = "true"
(npm ci) -and (npx vite build) (npm ci) -and (npx vite build)
Remove-Item -Recurse -ErrorAction SilentlyContinue ../../BililiveRecorder.Web/embeded/ui Remove-Item -Recurse -ErrorAction SilentlyContinue ../../BililiveRecorder.Web/embeded/ui
Copy-Item -Recurse dist ../../BililiveRecorder.Web/embeded/ui Copy-Item -Recurse dist ../../BililiveRecorder.Web/embeded/ui

View File

@ -3,7 +3,7 @@ set -ex
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
pushd "$SCRIPT_DIR/source" pushd "$SCRIPT_DIR/source"
export BASE_URL="/ui/" export BASE_URL="/ui/"
export EMBEDED_BUILD="true" export VITE_EMBEDDED_BUILD="true"
npm ci && npx vite build npm ci && npx vite build
rm --recursive ../../BililiveRecorder.Web/embeded/ui 2>/dev/null || true rm --recursive ../../BililiveRecorder.Web/embeded/ui 2>/dev/null || true
cp --recursive dist ../../BililiveRecorder.Web/embeded/ui cp --recursive dist ../../BililiveRecorder.Web/embeded/ui

@ -1 +1 @@
Subproject commit cdc80bcc8983ed22f946d7d134ffd8ea0f92d5c7 Subproject commit 63f833c5086a9cf44daa92bfcf1677f51b4e0bdf