From fb9a706b845a49a8ec49f4793c9e3e27abeb531b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 5 Dec 2026 21:19:52 +0100 Subject: [PATCH] Integration: include *.glsl compute shaders in export_presets and accept Release ymir_box3d.dll range (ABI 22) --- client/export_presets.cfg | 2 +- tools/build_release.ps1 | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/export_presets.cfg b/client/export_presets.cfg index 62d03d8..4a70a59 100644 --- a/client/export_presets.cfg +++ b/client/export_presets.cfg @@ -7,7 +7,7 @@ advanced_options=false dedicated_server=false custom_features="" export_filter="all_resources" -include_filter="" +include_filter="*.glsl" exclude_filter="tests/*,*.uid" export_path="" patches=PackedStringArray() diff --git a/tools/build_release.ps1 b/tools/build_release.ps1 index a6c3dad..f12c601 100644 --- a/tools/build_release.ps1 +++ b/tools/build_release.ps1 @@ -21,7 +21,8 @@ catch { # Ignore on runtimes where SecurityProtocol is managed by OS } -$ExpectedYmirDllBytes = 776192L +$MinReleaseYmirDllBytes = 400000L +$MaxReleaseYmirDllBytes = 2000000L # Release is ~750-900 KB; Debug (with BOX3D_VALIDATE) is > 4 MB function Resolve-RepoPath { param([string]$PathValue, [string]$BaseDir) @@ -253,8 +254,8 @@ if (-not (Test-Path $ymirDllPath)) { throw "Release ymir_box3d.dll not found at '$ymirDllPath'." } $ymirDllLen = (Get-Item $ymirDllPath).Length -if ($ymirDllLen -ne $ExpectedYmirDllBytes) { - throw "ymir_box3d.dll size mismatch: expected $ExpectedYmirDllBytes bytes (Release), got $ymirDllLen bytes at '$ymirDllPath'." +if ($ymirDllLen -lt $MinReleaseYmirDllBytes -or $ymirDllLen -gt $MaxReleaseYmirDllBytes) { + throw "ymir_box3d.dll size outside Release range ($MinReleaseYmirDllBytes..$MaxReleaseYmirDllBytes B; Debug is >4 MB): got $ymirDllLen bytes at '$ymirDllPath'." } Write-Host "Verified Release ymir_box3d.dll ($ymirDllLen B)."