docs(reference): import Dune: Awakening server-manager references
Phase 2 references for the host-agent Dune adapter, moved out of volatile /tmp
into docs/reference-repos/ (per Commander). Three upstream projects, .git +
node_modules + compiled binaries stripped (16MB source). Nested AI-instruction
files (.claude/, CLAUDE.md) removed so they don't pollute Corrosion sessions.
- icehunter/ dune-admin (Go+React) — 4 control planes; SETUP_DOCKER.md is the
closest analog to our agent's Dune docker control plane (compose
lifecycle, docker logs, RabbitMQ-via-exec, dune Postgres schema)
- adainrivers/ Rust/Tauri desktop — SSH+k8s BattleGroup control, maintenance
daemon, in-game admin console (Rust idiom reference)
- the4rchangel/ Node web UI replacing battlegroup.bat — matches the Commander's
Hyper-V self-host path + game-config schema
See docs/reference-repos/README.md for the full index + how we use each.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
65
docs/reference-repos/adainrivers/scripts/rebuild-release.cmd
Normal file
65
docs/reference-repos/adainrivers/scripts/rebuild-release.cmd
Normal file
@@ -0,0 +1,65 @@
|
||||
@echo off
|
||||
setlocal EnableExtensions
|
||||
|
||||
set "SCRIPT_DIR=%~dp0"
|
||||
for %%I in ("%SCRIPT_DIR%..") do set "REPO_ROOT=%%~fI"
|
||||
set "APP_DIR=%REPO_ROOT%\app"
|
||||
set "SERVICE_BIN=%REPO_ROOT%\target\x86_64-unknown-linux-musl\release\dune-server-service"
|
||||
set "BUNDLED_SERVICE_BIN=%APP_DIR%\src-tauri\binaries\dune-server-service"
|
||||
set "NSIS_DIR=%REPO_ROOT%\target\release\bundle\nsis"
|
||||
set "RUSTUP_RUSTC=%USERPROFILE%\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe"
|
||||
|
||||
pushd "%REPO_ROOT%" || exit /b 1
|
||||
|
||||
echo.
|
||||
echo == Cargo workspace tests ==
|
||||
cargo test --workspace
|
||||
if errorlevel 1 goto :fail
|
||||
|
||||
echo.
|
||||
echo == Frontend build ==
|
||||
pushd "%APP_DIR%" || goto :fail
|
||||
call npm.cmd run build
|
||||
if errorlevel 1 goto :fail_pop_app
|
||||
popd
|
||||
|
||||
echo.
|
||||
echo == Linux management service build ==
|
||||
if exist "%RUSTUP_RUSTC%" (
|
||||
set "RUSTC=%RUSTUP_RUSTC%"
|
||||
)
|
||||
rustup run stable cargo zigbuild -p dune-server-service --release --target x86_64-unknown-linux-musl
|
||||
if errorlevel 1 goto :fail
|
||||
|
||||
echo.
|
||||
echo == Bundle service binary ==
|
||||
copy /Y "%SERVICE_BIN%" "%BUNDLED_SERVICE_BIN%" >nul
|
||||
if errorlevel 1 goto :fail
|
||||
|
||||
echo.
|
||||
echo == Tauri release installer ==
|
||||
pushd "%APP_DIR%" || goto :fail
|
||||
call npm.cmd run tauri -- build
|
||||
if errorlevel 1 goto :fail_pop_app
|
||||
popd
|
||||
|
||||
echo.
|
||||
echo Release build complete:
|
||||
for /f "delims=" %%F in ('dir /b /o-d "%NSIS_DIR%\*.exe" 2^>nul') do (
|
||||
echo %NSIS_DIR%\%%F
|
||||
goto :done
|
||||
)
|
||||
echo %NSIS_DIR%
|
||||
|
||||
:done
|
||||
popd
|
||||
exit /b 0
|
||||
|
||||
:fail_pop_app
|
||||
popd
|
||||
|
||||
:fail
|
||||
echo.
|
||||
echo Rebuild failed.
|
||||
popd
|
||||
exit /b 1
|
||||
Reference in New Issue
Block a user