Files
overlord/scripts/build-desktop.bat
T

33 lines
648 B
Batchfile
Raw Normal View History

@echo off
2026-06-12 09:14:49 -05:00
setlocal
set "SCRIPT_DIR=%~dp0"
for %%I in ("%SCRIPT_DIR%..") do set "ROOT=%%~fI\"
2026-05-11 20:04:13 -05:00
echo === Building Overlord Desktop (Tauri) ===
2026-06-12 09:14:49 -05:00
pushd "%ROOT%Overlord-Desktop"
2026-05-11 20:04:13 -05:00
where bun >nul 2>&1
if errorlevel 1 (
echo error: bun is required ^(https://bun.sh^)
2026-06-12 09:14:49 -05:00
goto :err
2026-05-11 20:04:13 -05:00
)
where cargo >nul 2>&1
if errorlevel 1 (
echo error: rust toolchain is required ^(https://rustup.rs^)
2026-06-12 09:14:49 -05:00
goto :err
2026-05-11 20:04:13 -05:00
)
2026-06-12 09:14:49 -05:00
call bun install || goto :err
call bun run vendor || goto :err
call bun run build:win || goto :err
2026-05-11 20:04:13 -05:00
echo === Done — bundle output: Overlord-Desktop\src-tauri\target\release\bundle\ ===
2026-06-12 09:14:49 -05:00
popd
pause
2026-06-12 09:14:49 -05:00
endlocal
exit /b 0
:err
popd >nul 2>&1
endlocal
exit /b 1