run-tests.ps1 -AllowWhileRunning starts the headless test game even while RimWorld is open, at below-normal priority, and a lock file keeps two runs from overlapping. The art README's render commands now work as written (escaped regex, separate Edge profile, waiting for each screenshot). |
||
|---|---|---|
| .. | ||
| fonts | ||
| README.md | ||
| blax-monogram.svg | ||
| icon.html | ||
| monogram-centered.svg | ||
| preview.html | ||
README.md
Preview art
preview.html renders About/Preview.png (1280x720) and icon.html renders About/ModIcon.png (256x256), in the Blax CI from https://www.blax.at/ui-ci: Blax black #050805, Blax green #19C63C, logo gray #CDCDCD, Geist for headings, Inter for body, Rajdhani only for the "Blax Gaming" wordmark. Fonts are the woff2 files blax.at self-hosts (all SIL Open Font License); icons are lucide.
Render with Edge headless from this folder. The separate profile folder keeps the headless run away from an open Edge window, and | Out-Null waits for each screenshot.
$edge = 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
$here = (Get-Location).Path -replace '\\','/'
$edgeData = "$env:TEMP\blax-art-edge"
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1280,720 --screenshot="$PWD\..\..\About\Preview.png" "file:///$here/preview.html" | Out-Null
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=2000 --window-size=256,256 --default-background-color=00000000 --screenshot="$PWD\..\..\About\ModIcon.png" "file:///$here/icon.html" | Out-Null