Fix portable USB pack webroot resolution and document LAUNCH flow.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Prefer server/webroot in pack-usb (Vite outDir), cd to deck root before starting AetherForge so cwd-based webroot lookup hits usb\webroot, and note pack/LAUNCH steps in tests/README.
This commit is contained in:
@@ -104,10 +104,10 @@ echo [2/8] AetherForge.exe ready.
|
||||
:: ----------------------------------------------------------------
|
||||
echo [3/8] Copying webroot...
|
||||
if exist "%USB%\webroot" rd /s /q "%USB%\webroot"
|
||||
if exist "%ROOT%\server\web\dist" (
|
||||
xcopy /e /i /q "%ROOT%\server\web\dist" "%USB%\webroot" >nul
|
||||
) else if exist "%ROOT%\server\webroot" (
|
||||
if exist "%ROOT%\server\webroot" (
|
||||
xcopy /e /i /q "%ROOT%\server\webroot" "%USB%\webroot" >nul
|
||||
) else if exist "%ROOT%\server\web\dist" (
|
||||
xcopy /e /i /q "%ROOT%\server\web\dist" "%USB%\webroot" >nul
|
||||
) else (
|
||||
echo ERROR: No webroot found. Run npm run build in server\web first.
|
||||
pause
|
||||
|
||||
Reference in New Issue
Block a user