Files
Commonwealth-Online-Public/ui/sync-shared-assets.bat
T
andrew c3f5afe7f6 Consolidate shared UI assets
Move common logo and controller glyphs into `ui/views/CommonwealthOnline/shared/` and update the pause menu, main menu, and browser glyph loader to use the shared paths. Also add a sync script and update deploy/staging scripts to copy controller icons once into the shared folder.
2026-07-05 22:46:38 +12:00

19 lines
461 B
Batchfile

@echo off
setlocal EnableExtensions
set "SCRIPT_DIR=%~dp0"
set "SHARED_ICONS=%SCRIPT_DIR%views\CommonwealthOnline\shared\icons"
if not exist "%SHARED_ICONS%" mkdir "%SHARED_ICONS%"
echo Syncing controller icons to shared views folder...
xcopy /Y /E /I "%SCRIPT_DIR%Icons\*" "%SHARED_ICONS%\"
if errorlevel 1 (
echo Failed to copy icons from ui\Icons.
exit /b 1
)
echo Shared assets ready under ui\views\CommonwealthOnline\shared\
endlocal
exit /b 0