BililiveRecorder/webui/build.ps1

9 lines
308 B
PowerShell
Raw Normal View History

2022-06-04 03:39:33 +08:00
Set-PSDebug -Trace 1
Push-Location "$PSScriptRoot/source"
$env:BASE_URL = "./"
2022-06-24 19:57:33 +08:00
$env:VITE_EMBEDDED_BUILD = "true"
2022-06-07 17:43:42 +08:00
(npm ci) -and (npx vite build)
Remove-Item -Recurse -ErrorAction SilentlyContinue ../../BililiveRecorder.Web/embeded/ui
2022-06-04 03:39:33 +08:00
Copy-Item -Recurse dist ../../BililiveRecorder.Web/embeded/ui
Pop-Location