fix(build): the wordmark number counts commits again, not compiles

GenerateBuildStamp read BuildCounter.txt, added 1 and wrote it back on every CoreCompile, so
the number tracked BUILDS: a day of iteration reached #1122 against 563 commits. It now uses
git rev-list count of HEAD, which is what the comment always claimed (and why the file existed
in .gitignore). No counter file, no drift; a missing git still falls back to the start.

Also moves the MIC and lip-sync volume bars up one line: both were pinned to the floor of their
bay by a star row plus VerticalAlignment=Bottom. They now sit directly under their headers,
with the auto rows sized to content.
This commit is contained in:
2026-11-01 13:56:17 -08:00
parent 35c7809c28
commit 789272142d
5 changed files with 17 additions and 19 deletions
+10 -13
View File
@@ -38,11 +38,12 @@
<BuildStampId>$([System.Guid]::NewGuid().ToString('N').Substring(0,8))</BuildStampId>
<BuildStampTime>$([System.DateTime]::Now.ToString('yyyy-MM-dd HH:mm:ss'))</BuildStampTime>
<!-- RELEASE COUNTER (creator ruling 2026-09-04): the UI shows a sequential number that
ticks +1 per COMMIT, starting at 13 — a per-BUILD GUID changed on every launch and read
as noise (rightly). Derived from git rev-list count (stable per commit, no bookkeeping).
Baseline 241 = count at introduction, first display 13. Missing git or unparsed output
falls back to the start (build never breaks). GUID + compile time stay in startup.log,
where build-identity forensics actually live. -->
ticks +1 per COMMIT — a per-BUILD GUID changed on every launch and read as noise
(rightly). It is git rev-list count of HEAD, evaluated below.
⛔ It used to read BuildCounter.txt, add 1 and write it back on EVERY CoreCompile, so it
counted BUILDS: one day of iteration reached #1122 against 563 commits (2026-11-01).
No counter file now: the commit count cannot drift. Missing git falls back to the
start, so the build never breaks. GUID + compile time stay in startup.log. -->
<BuildNumberBaseline>17</BuildNumberBaseline>
<BuildNumberStart>13</BuildNumberStart>
</PropertyGroup>
@@ -51,14 +52,10 @@
<Output TaskParameter="ConsoleOutput" PropertyName="CommitCountRaw" />
</Exec>
<PropertyGroup>
<CommitCount>$(CommitCountRaw.Trim())</CommitCount>
<BuildCounterFile>$(ProjectDir)BuildCounter.txt</BuildCounterFile>
<PriorBuildCount Condition="Exists('$(BuildCounterFile)')">$([System.IO.File]::ReadAllText('$(BuildCounterFile)').Trim())</PriorBuildCount>
<PriorBuildCount Condition="'$(PriorBuildCount)' == ''">423</PriorBuildCount>
<BuildNumber>$([MSBuild]::Add($(PriorBuildCount), 1))</BuildNumber>
</PropertyGroup>
<WriteLinesToFile File="$(BuildCounterFile)" Lines="$(BuildNumber)" Overwrite="true" WriteOnlyWhenDifferent="false" />
<PropertyGroup>
<!-- First integer in git's output: the Exec can echo the count twice, and a multi-line value
would fail the numeric check below and silently pin the stamp. -->
<CommitCount>$([System.Text.RegularExpressions.Regex]::Match('$(CommitCountRaw)', '[0-9]+').Value)</CommitCount>
<BuildNumber Condition="'$(CommitCount)' != ''">$(CommitCount)</BuildNumber>
<BuildNumber Condition="! $([System.Text.RegularExpressions.Regex]::IsMatch('$(BuildNumber)', '^[0-9]+$'))">$(BuildNumberStart)</BuildNumber>
</PropertyGroup>
<ItemGroup>