From 53130ad5e4427d14b8d0f07ae356545d96a6042f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 22 Oct 2026 19:46:58 +0200 Subject: [PATCH] Pin CultLib 2.0.0 for builds Directory.Build.props names CultLibRoot (CULTLIB_ROOT, else the sibling checkout) and pins CultLibRevision to cultlib-unity-v2.0.0 (42dce361). Directory.Build.targets fails the build unless that checkout is at the pin and clean, as Aetheria's guard does. Project references use CultLibRoot. Co-Authored-By: Claude Sonnet 5.5 --- Directory.Build.props | 10 ++++++++++ Directory.Build.targets | 30 ++++++++++++++++++++++++++++++ README.md | 11 +++++++++++ src/Gjallar/Gjallar.csproj | 1 - 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 Directory.Build.props create mode 100644 Directory.Build.targets diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..c8a3c67 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,10 @@ + + + $(CULTLIB_ROOT) + $(MSBuildThisFileDirectory)..\CultLib + + 42dce3611a81adc5c5fac54cadbaa5637d6022d3 + C:\Program Files\Git\cmd\git.exe + git + + diff --git a/Directory.Build.targets b/Directory.Build.targets new file mode 100644 index 0000000..46d436a --- /dev/null +++ b/Directory.Build.targets @@ -0,0 +1,30 @@ + + + + + <_CultLibReference Include="@(ProjectReference)" + Condition="$([System.String]::Copy('%(Filename)').StartsWith('GameCult.')) or '%(Filename)' == 'CultMath'" /> + + + + + + + + + + + + diff --git a/README.md b/README.md index e052e89..15bbae1 100644 --- a/README.md +++ b/README.md @@ -159,3 +159,14 @@ Headless status explicitly reports framebuffer disablement: ``` The horn is not polished. It is real enough to make noise. + +## Building against CultLib + +Builds are pinned to CultLib 2.0.0 (tag `cultlib-unity-v2.0.0`, revision `42dce3611a81adc5c5fac54cadbaa5637d6022d3`); the build fails if the CultLib checkout differs or is dirty. Create a pinned worktree and point the build at it: + +```powershell +git -C worktree add --detach cultlib-unity-v2.0.0 +dotnet build -p:CultLibRoot= # or set CULTLIB_ROOT= +``` + +Without an override the sibling `..\CultLib` checkout is used and must itself be at that tag. diff --git a/src/Gjallar/Gjallar.csproj b/src/Gjallar/Gjallar.csproj index 154b773..9c3c0b3 100644 --- a/src/Gjallar/Gjallar.csproj +++ b/src/Gjallar/Gjallar.csproj @@ -1,6 +1,5 @@ - $(MSBuildThisFileDirectory)..\..\..\CultLib Exe net10.0 enable