mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
fix: wrong BASE_URL (+1 squashed commits)
Squashed commits: [485c2bd] fix: wrong BASE_URL
This commit is contained in:
parent
13733ed3ce
commit
4472ad5d53
|
@ -1,6 +1,6 @@
|
||||||
Set-PSDebug -Trace 1
|
Set-PSDebug -Trace 1
|
||||||
Push-Location "$PSScriptRoot/source"
|
Push-Location "$PSScriptRoot/source"
|
||||||
$env:BASE_URL = "/ui/"
|
$env:BASE_URL = "./"
|
||||||
$env:VITE_EMBEDDED_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
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
set -ex
|
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="./"
|
||||||
export VITE_EMBEDDED_BUILD="true"
|
export VITE_EMBEDDED_BUILD="true"
|
||||||
npm ci && npx vite build
|
npm ci && npx vite build
|
||||||
rm -R ../../BililiveRecorder.Web/embeded/ui 2>/dev/null || true
|
rm -R ../../BililiveRecorder.Web/embeded/ui 2>/dev/null || true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user