<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Release-Automation | Tobias Theel | Senior Software Engineer</title><link>https://blog.noobygames.de/de/tags/release-automation/</link><description>Remote-first Senior Software Engineer specializing in Go, Cloud-Native architecture, and Game Development. 12+ years of experience in distributed environments.</description><generator>Hugo</generator><language>de</language><copyright>© 2026 Tobias Theel</copyright><lastBuildDate>Sun, 29 Nov 2026 08:00:00 +0100</lastBuildDate><atom:link href="https://blog.noobygames.de/de/tags/release-automation/index.xml" rel="self" type="application/rss+xml"/><item><title>Level Time bauen — Teil 3: Release-Pipeline mit Go-Installer, BigWigs-Packager und CurseForge</title><link>https://blog.noobygames.de/de/blog/level-time-3-release-pipeline/</link><pubDate>Sun, 29 Nov 2026 08:00:00 +0100</pubDate><dc:creator>Tobias Theel</dc:creator><guid isPermaLink="true">https://blog.noobygames.de/de/blog/level-time-3-release-pipeline/</guid><category>Software Engineering</category><category>wow-addon</category><category>lua</category><category>go</category><category>github-actions</category><category>bigwigs-packager</category><category>curseforge</category><category>release-automation</category><category>ci-cd</category><description>Tag pushen, Release bekommen: ein WoW-Addon mit GitHub Actions und dem BigWigs-Packager zu CurseForge bringen, dazu ein kleiner Go-Installer für lokale Builds.</description><content:encoded><![CDATA[<blockquote>
<p><strong>Serie: Level Time bauen</strong>, Teil 3 von 4. <a href="/de/blog/level-time-1-addon-architecture/">Teil 1: Addon-Architektur</a> · <a href="/de/blog/level-time-2-testing-lua-with-go/">Teil 2: Lua mit Go testen</a> · <strong>Teil 3: Release-Pipeline</strong> · <span class="link-upcoming">Teil 4: Goals und die öffentliche API</span> · Produktseite: <a href="/de/page/level-time/">Level Time</a></p>
</blockquote>
<aside class="tldr" aria-label="Das Wichtigste in Kürze">
<p class="tldr-title">TL;DR</p>
<ul>
<li>Ein gepushter Git-Tag nach dem Muster <code>v*</code> startet den Release-Workflow von Level Time in GitHub Actions, und <code>needs: test</code> verhindert das Release, wenn der Test-Job rot ist.</li>
<li>Die Action <code>BigWigsMods/packager@v2</code> zippt das Addon, erzeugt das Changelog aus der Git-Historie und lädt mit der Projekt-ID aus der <code>.toc</code> und dem Secret <code>CF_API_KEY</code> zu CurseForge hoch.</li>
<li><code>.pkgmeta</code> ist eine Deny-Liste: Jede neue Datei im Repository, die kein Addon-Code ist, muss in <code>ignore</code> stehen, sonst landet sie im Zip.</li>
<li>Level Time Goals wird aus demselben Repository über einen zweiten Packager-Lauf gegen einen Klon ausgeliefert, den <code>git filter-branch --subdirectory-filter StreamGoal</code> umschreibt.</li>
<li>Der Go-Installer unter <code>tools/installer</code> kopiert nur die Dateien aus der <code>.toc</code> in jede WoW-Spielversion und verweigert jeden Pfad mit <code>WTF</code>, wo die SavedVariables liegen.</li>
</ul>

</aside>

<p>Wenn ein Addon funktioniert, muss es noch zu den Spielern kommen, und ich wollte mich nicht für jede Version durch mehrere Upload-Formulare klicken. Für <a href="/de/page/level-time/">Level Time</a>, ein World-of-Warcraft-Addon, das Zeit, XP und Kills pro Level misst, wollte ich eine einzige Regel: <strong>Ich pushe einen Git-Tag, und alles andere passiert von selbst.</strong></p>
<p>In diesem Artikel gehe ich den ganzen Weg von <code>git tag</code> bis zur Datei auf CurseForge durch: den GitHub-Actions-Workflow, den <a href="https://github.com/BigWigsMods/packager" rel="noopener">BigWigs-Packager</a>, die <code>.pkgmeta</code>, die <code>.toc</code>-Dateien für mehrere Spielversionen, einen Trick, um ein zweites Addon aus demselben Repository auszuliefern, und den kleinen Go-Installer, mit dem ich Builds in meinen eigenen WoW-Ordnern teste.</p>
<p>Alles hier stammt aus <code>release.yml</code>, <code>.pkgmeta</code>, <code>Makefile</code> und <code>tools/installer</code> des Repositories. Die Kommentare im Repo sind auf Deutsch, in den Code-Ausschnitten unten habe ich sie ins Englische übersetzt.</p>
<hr>
<h2 id="das-ziel-ein-tag-ist-ein-release">Das Ziel: Ein Tag ist ein Release</h2>
<p>Der Workflow startet bei Tags, die auf <code>v*</code> passen. Kein anderer Weg veröffentlicht etwas. Normale Pushes auf <code>main</code> und Pull Requests laufen durch einen separaten <code>Test</code>-Workflow (<code>make vet</code> und <code>make test</code>), ein kaputter Test fällt also meist lange vor dem Tag auf.</p>










<figure class="diagram">
    <div class="diagram-canvas" role="img" aria-label="Vom Tag zum Release. Der Test-Job schützt den Release-Job; der Packager läuft zweimal, weil Level Time und Level Time Goals getrennte CurseForge-Projekte sind.">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 420" width="720" height="420">
  <defs>
    <marker id="ar-lt3-pipeline" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
      <path d="M0 0 L10 5 L0 10 z" class="d-arrowhead"/>
    </marker>
  </defs>

  <rect x="260" y="14" width="200" height="44" rx="9" class="d-box d-b"/>
  <text x="360" y="34" class="d-t d-bold" font-size="14" text-anchor="middle">git tag v2.26.0</text>
  <text x="360" y="50" class="d-m" font-size="11.5" text-anchor="middle">git push origin v2.26.0</text>
  <line x1="360" y1="60" x2="360" y2="80" class="d-arrow" marker-end="url(#ar-lt3-pipeline)"/>

  <rect x="220" y="84" width="280" height="44" rx="9" class="d-box"/>
  <text x="360" y="104" class="d-t d-bold" font-size="14" text-anchor="middle">Job "test"</text>
  <text x="360" y="120" class="d-m" font-size="11.5" text-anchor="middle">make test (Lua scenarios, installer, tools)</text>
  <line x1="360" y1="130" x2="360" y2="150" class="d-arrow" marker-end="url(#ar-lt3-pipeline)"/>
  <text x="372" y="144" class="d-m" font-size="11" text-anchor="start">needs: test</text>

  <rect x="220" y="154" width="280" height="44" rx="9" class="d-box"/>
  <text x="360" y="174" class="d-t d-bold" font-size="14" text-anchor="middle">Job "release"</text>
  <text x="360" y="190" class="d-m" font-size="11.5" text-anchor="middle">full git history (fetch-depth: 0)</text>

  <line x1="360" y1="200" x2="360" y2="214" class="d-arrow"/>
  <line x1="190" y1="214" x2="530" y2="214" class="d-arrow"/>
  <line x1="190" y1="214" x2="190" y2="238" class="d-arrow" marker-end="url(#ar-lt3-pipeline)"/>
  <line x1="530" y1="214" x2="530" y2="238" class="d-arrow" marker-end="url(#ar-lt3-pipeline)"/>

  <rect x="60" y="242" width="260" height="62" rx="9" class="d-box d-y"/>
  <text x="190" y="264" class="d-t d-bold" font-size="14" text-anchor="middle">Packager run 1</text>
  <text x="190" y="282" class="d-m" font-size="11.5" text-anchor="middle">repo root: LevelTimer + LevelTimer_Archive</text>
  <text x="190" y="297" class="d-m" font-size="11.5" text-anchor="middle">.pkgmeta move-folders</text>

  <rect x="400" y="242" width="260" height="62" rx="9" class="d-box d-y"/>
  <text x="530" y="264" class="d-t d-bold" font-size="14" text-anchor="middle">Packager run 2</text>
  <text x="530" y="282" class="d-m" font-size="11.5" text-anchor="middle">split clone: StreamGoal/ as root</text>
  <text x="530" y="297" class="d-m" font-size="11.5" text-anchor="middle">GITHUB_OAUTH empty (no 2nd release)</text>

  <line x1="190" y1="306" x2="190" y2="336" class="d-arrow" marker-end="url(#ar-lt3-pipeline)"/>
  <line x1="530" y1="306" x2="530" y2="336" class="d-arrow" marker-end="url(#ar-lt3-pipeline)"/>

  <rect x="40" y="340" width="300" height="58" rx="9" class="d-box d-g"/>
  <text x="190" y="362" class="d-t d-bold" font-size="13" text-anchor="middle">GitHub release + CurseForge 1721235</text>
  <text x="190" y="380" class="d-m" font-size="11.5" text-anchor="middle">Wago / WoWInterface only if ID + secret exist</text>

  <rect x="400" y="340" width="260" height="58" rx="9" class="d-box d-g"/>
  <text x="530" y="362" class="d-t d-bold" font-size="13" text-anchor="middle">CurseForge 1744370</text>
  <text x="530" y="380" class="d-m" font-size="11.5" text-anchor="middle">Level Time Goals</text>
</svg>

    </div>
    <figcaption class="diagram-caption">Vom Tag zum Release. Der Test-Job schützt den Release-Job; der Packager läuft zweimal, weil Level Time und Level Time Goals getrennte CurseForge-Projekte sind.</figcaption>
</figure>

<p>Der Release-Workflow, auf das Gerüst gekürzt:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Release</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">on</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">push</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">tags</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="s2">&#34;v*&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">jobs</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">test</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">runs-on</span><span class="p">:</span><span class="w"> </span><span class="l">ubuntu-latest</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">steps</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">actions/checkout@v7</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">actions/setup-go@v7</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">go-version</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;1.27&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">run</span><span class="p">:</span><span class="w"> </span><span class="l">make test</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">release</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">needs</span><span class="p">:</span><span class="w"> </span><span class="l">test         </span><span class="w"> </span><span class="c"># no green tests, no release</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">runs-on</span><span class="p">:</span><span class="w"> </span><span class="l">ubuntu-latest</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">permissions</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span><span class="nt">contents</span><span class="p">:</span><span class="w"> </span><span class="l">write   </span><span class="w"> </span><span class="c"># needed to create the GitHub release</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">steps</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">actions/checkout@v7</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">        </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">          </span><span class="nt">fetch-depth</span><span class="p">:</span><span class="w"> </span><span class="m">0</span><span class="w"> </span><span class="c"># the packager needs history for version and changelog</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">BigWigsMods/packager@v2</span><span class="w">
</span></span></span></code></pre></div><p>Drei Details sind wichtig.</p>
<p><strong><code>needs: test</code>.</strong> Der Release-Job startet nur, wenn der Test-Job grün ist. Die Tests sind die Lua-Szenarien aus <a href="/de/blog/level-time-2-testing-lua-with-go/">Teil 2: Lua mit Go testen</a> plus die Tests des Installers und der anderen Go-Tools. Ein Tag auf einem roten Commit erzeugt also kein Release. Siehe die GitHub-Doku zu <a href="https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow#defining-prerequisite-jobs" rel="noopener"><code>needs</code></a>.</p>
<p><strong><code>fetch-depth: 0</code>.</strong> <code>actions/checkout</code> holt standardmäßig nur einen Commit. Der Packager leitet die Version aus der Git-Historie ab und baut das Changelog aus den Commit-Nachrichten, braucht also die komplette Historie und die Tags.</p>
<p><strong><code>contents: write</code>.</strong> Zum Anlegen eines Releases braucht der Job Schreibrechte auf den Repository-Inhalt. Ich gebe sie nur dem Release-Job, nicht dem Test-Job. Siehe <a href="https://docs.github.com/en/actions/tutorials/authenticate-with-github_token" rel="noopener">Automatic token authentication</a>.</p>
<hr>
<h2 id="der-bigwigs-packager">Der BigWigs-Packager</h2>
<p>Der Packager ist ein Bash-Skript des BigWigs-Teams und im Addon-Ökosystem weit verbreitet. Er erledigt ein paar Aufgaben, die von Hand lästig sind:</p>
<ol>
<li>Die Addon-Dateien in einen sauberen Ordner kopieren und alles aus der <code>ignore</code>-Liste weglassen.</li>
<li>Schlüsselwörter wie <code>@project-version@</code> in den Dateien ersetzen.</li>
<li>Aus der Git-Historie ein Changelog erzeugen.</li>
<li>Das Ergebnis zippen.</li>
<li>Zu den konfigurierten Plattformen hochladen und ein GitHub-Release anlegen.</li>
</ol>
<p>Die Action <code>BigWigsMods/packager@v2</code> verpackt das Skript. Zu welchen Plattformen hochgeladen wird, entscheiden pro Plattform zwei Dinge: eine ID in der <code>.toc</code> und ein API-Token in der Umgebung. Der Kopf des Workflows dokumentiert den Vertrag:</p>
<table>
	<thead>
			<tr>
					<th>Plattform</th>
					<th><code>.toc</code>-Zeile</th>
					<th>Secret</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>CurseForge</td>
					<td><code>## X-Curse-Project-ID</code></td>
					<td><code>CF_API_KEY</code></td>
			</tr>
			<tr>
					<td>Wago</td>
					<td><code>## X-Wago-ID</code></td>
					<td><code>WAGO_API_TOKEN</code></td>
			</tr>
			<tr>
					<td>WoWInterface</td>
					<td><code>## X-WoWI-ID</code></td>
					<td><code>WOWI_API_TOKEN</code></td>
			</tr>
	</tbody>
</table>
<p>Fehlt eine ID oder ein Token, wird die Plattform übersprungen. Fehlt alles, bekommst du trotzdem das GitHub-Release. Das ist eine schöne Eigenschaft: Die Pipeline macht dann eben weniger, statt zu scheitern. Aktuell tragen meine <code>.toc</code>-Dateien nur eine CurseForge-Projekt-ID (1721235 für Level Time, 1744370 für Level Time Goals). Die Tokens liegen als Repository-Secrets und werden als Umgebungsvariablen durchgereicht; ihre Werte stehen nie im Repo.</p>
<h3 id="den-upload-benennen">Den Upload benennen</h3>
<p>Standardmäßig benennt der Packager die Datei nach dem Tag, etwa <code>v2.26.0</code>. Ich möchte überall denselben Namen, deshalb übergibt der Workflow <code>-n</code>:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl">- <span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">BigWigsMods/packager@v2</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">args</span><span class="p">:</span><span class="w"> </span>-<span class="kc">n</span><span class="w"> </span><span class="s2">&#34;{package-name}-{project-version}:{package-name}-{project-version}.zip&#34;</span><span class="w">
</span></span></span></code></pre></div><p>Das Format ist <code>{Dateiname}:{Label}</code>. Beide Teile werden zu <code>LevelTimer-v2.26.0</code>, sodass Zip und CurseForge-Anzeigename zu den Dateien aus der Zeit passen, in der ich von Hand hochgeladen habe. Die Platzhalter stehen in der <a href="https://github.com/BigWigsMods/packager#usage" rel="noopener">Packager-README</a>.</p>
<hr>
<h2 id="pkgmeta-was-ins-zip-kommt"><code>.pkgmeta</code>: Was ins Zip kommt</h2>
<p>Der Packager liefert das Repository ohne das aus, was <code>.pkgmeta</code> ignoriert. Das ist eine Deny-Liste, und die hat eine Konsequenz: <strong>Jede neue Datei, die kein Addon-Code ist, muss in <code>ignore</code> eingetragen werden</strong>, sonst landet sie im Zip. Hier die komplette Datei, Kommentare übersetzt:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="c"># Config for the BigWigs packager (.github/workflows/release.yml).</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">package-as</span><span class="p">:</span><span class="w"> </span><span class="l">LevelTimer</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="c"># Load-on-demand archive: its own addon folder next to LevelTimer/</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">move-folders</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">LevelTimer/LevelTimer_Archive</span><span class="p">:</span><span class="w"> </span><span class="l">LevelTimer_Archive</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="nt">ignore</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">tests</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">StreamGoal</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">tools</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">curseforge</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">Makefile</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">README.md</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">ROADMAP.md</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">ManualToCheck.md</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span>- <span class="l">image.png</span><span class="w">
</span></span></span></code></pre></div><p>Zeile für Zeile:</p>
<ul>
<li><strong><code>package-as</code></strong> legt den Ordnernamen im Zip fest. Das Repository heißt <code>wow-statistics</code>, aber WoW erwartet, dass der Addon-Ordner wie die <code>.toc</code>-Datei heißt, also muss er <code>LevelTimer</code> sein.</li>
<li><strong><code>move-folders</code></strong> löst ein Platzierungsproblem. Level Time hat ein zweites Addon, das bei Bedarf geladen wird: <code>LevelTimer_Archive</code>, ein Journal-Archiv. WoW sieht nur Addons, die direkt in <code>Interface/AddOns/</code> liegen. Weil das Archiv im Repository in einem Unterordner liegt, legt der Packager es zuerst nach <code>LevelTimer/LevelTimer_Archive/</code>, und <code>move-folders</code> hebt es auf die oberste Ebene des Zips. Die eigene <code>.toc</code> des Archivs enthält <code>## LoadOnDemand: 1</code> und <code>## Dependencies: LevelTimer</code>.</li>
<li><strong><code>ignore</code></strong> schließt Tests, Go-Tools, CurseForge-Texte und Projektdokumente aus. Dazu <code>StreamGoal</code>, ein eigenes Addon mit eigenem Paket (nächster Abschnitt).</li>
</ul>
<p>Alle Direktiven stehen in der <a href="https://github.com/BigWigsMods/packager/wiki/Preparing-the-PackageMeta-File" rel="noopener"><code>.pkgmeta</code>-Dokumentation</a>.</p>
<hr>
<h2 id="eine-toc-mehrere-spielversionen">Eine <code>.toc</code>, mehrere Spielversionen</h2>
<p>World of Warcraft gibt es in mehreren Varianten: Retail, Classic Era und weitere. Sie teilen das Addon-Format, aber nicht die komplette API. Der <code>.toc</code>-Kopf von Level Time nennt mehrere Interface-Versionen in einer Zeile:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">## Interface: 120105, 11509, 20506, 16001
</span></span><span class="line"><span class="cl">## Title: Level Time
</span></span><span class="line"><span class="cl">## Version: @project-version@
</span></span><span class="line"><span class="cl">## Author: Nerzal
</span></span><span class="line"><span class="cl">## X-Curse-Project-ID: 1721235
</span></span><span class="line"><span class="cl">## SavedVariables: LevelTimerDB, LevelTimerStatsDB, LevelTimerDebugLog
</span></span></code></pre></div><p>Die kommagetrennte <code>## Interface</code>-Liste lässt eine <code>.toc</code> mehrere Clients bedienen, so beschrieben auf der <a href="https://warcraft.wiki.gg/wiki/TOC_format" rel="noopener">TOC-format-Seite des WoW-Wikis</a>. Die Projektnotizen im Repo halten die Regel fest, die daraus folgt: Ein API-Aufruf muss auf allen gelisteten Clients existieren oder abgesichert werden, denn es gibt keinen Build pro Variante. In Lua ist das ein simples <code>if GetPVPSessionStats then ...</code>. Die Struktur dahinter gehört zu <a href="/de/blog/level-time-1-addon-architecture/">Teil 1</a>.</p>
<p>Die Zeile <code>## Version: @project-version@</code> ist der Platzhalter, den der Packager durch den Tag ersetzt. Der Go-Installer ersetzt denselben Platzhalter, damit auch ein lokal installierter Build eine Version meldet.</p>
<hr>
<h2 id="zwei-addons-ein-repository">Zwei Addons, ein Repository</h2>
<p>Level Time Goals ist ein zweites Addon, liegt im Ordner <code>StreamGoal/</code>, hängt von Level Time ab (<code>## Dependencies: LevelTimer</code>) und hat ein eigenes CurseForge-Projekt (ID 1744370). Wie es funktioniert, steht in <span class="link-upcoming">Teil 4</span>. Für die Pipeline ist es ein Problem: Der Packager erwartet das Addon im <strong>Wurzelverzeichnis eines Git-Repositories</strong>, und sein Flag <code>-t</code> verlangt sogar ein <code>.git</code> dort.</p>
<p>Meine Lösung ist ein zweiter Packager-Lauf gegen einen Wegwerf-Klon, dessen Wurzel <em>selbst</em> <code>StreamGoal/</code> ist:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl">- <span class="nt">name</span><span class="p">:</span><span class="w"> </span><span class="l">Split StreamGoal history</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">run</span><span class="p">:</span><span class="w"> </span><span class="p">|</span><span class="sd">
</span></span></span><span class="line"><span class="cl"><span class="sd">    git clone -q . sg-repo
</span></span></span><span class="line"><span class="cl"><span class="sd">    cd sg-repo
</span></span></span><span class="line"><span class="cl"><span class="sd">    git filter-branch -f --subdirectory-filter StreamGoal --tag-name-filter cat -- --all
</span></span></span><span class="line"><span class="cl"><span class="sd">    git checkout -q &#34;$GITHUB_REF_NAME&#34;</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">
</span></span></span><span class="line"><span class="cl">- <span class="nt">uses</span><span class="p">:</span><span class="w"> </span><span class="l">BigWigsMods/packager@v2</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">env</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">GITHUB_OAUTH</span><span class="p">:</span><span class="w"> </span><span class="s2">&#34;&#34;</span><span class="w">   </span><span class="c"># otherwise a second GitHub release is created for the same tag</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">  </span><span class="nt">with</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">    </span><span class="nt">args</span><span class="p">:</span><span class="w"> </span>-<span class="l">t sg-repo -n &#34;{package-name}-{project-version}:{package-name}-{project-version}.zip&#34;</span><span class="w">
</span></span></span></code></pre></div><p><a href="https://git-scm.com/docs/git-filter-branch" rel="noopener"><code>git filter-branch --subdirectory-filter</code></a> schreibt den Klon so um, dass der Inhalt von <code>StreamGoal/</code> zur Repository-Wurzel wird, und nur Commits, die diesen Ordner berührt haben, bleiben übrig. <code>--tag-name-filter cat</code> schreibt die Tags mit der Historie um. Als Nebeneffekt enthält das Changelog von Level Time Goals nur Commits, die dieses Addon wirklich geändert haben.</p>
<p>Zwei Einschränkungen:</p>
<ul>
<li><code>git filter-branch</code> wird von Git selbst als nicht empfohlen markiert. <a href="https://github.com/newren/git-filter-repo" rel="noopener"><code>git filter-repo</code></a> ist der empfohlene Nachfolger, aber eine zusätzliche Abhängigkeit, und der Klon ist ohnehin Wegwerfware. Deshalb bleibe ich bisher beim eingebauten Befehl.</li>
<li><code>GITHUB_OAUTH</code> im zweiten Lauf zu leeren ist Absicht. Der erste Lauf hat das GitHub-Release für den Tag bereits angelegt; ohne diese Zeile würde der zweite Lauf ein weiteres anlegen wollen.</li>
</ul>
<p>Der Versions-Platzhalter funktioniert in beiden Läufen, weil beide <code>.toc</code>-Dateien <code>@project-version@</code> enthalten.</p>
<hr>
<h2 id="changelog-und-versionierung">Changelog und Versionierung</h2>
<p>Ich nutze einfache Semver-artige Tags: <code>v2.25.0</code>, <code>v2.25.1</code>, <code>v2.26.0</code>. Patch für Fixes, Minor für Features. Bei einem Tag-Build ist die Projektversion des Packagers der Tag-Name.</p>
<p>Das Changelog erzeugt der Packager aus der Git-Historie. Eine handgeschriebene <code>CHANGELOG.md</code> gibt es im Repository nicht, die Qualität der Release Notes ist also die Qualität meiner Commit-Nachrichten. Das ist ein Kompromiss: Es kostet keine Pflege, belohnt aber saubere Commits. Der Listing-Text auf CurseForge (Beschreibung und Logo) liegt getrennt im Ordner <code>curseforge/</code> und wird von Hand gepflegt, weil er das Addon beschreibt und nicht ein einzelnes Release.</p>
<p>Lokale Builds folgen derselben Idee: Das <code>Makefile</code> berechnet <code>VERSION</code> mit <code>git describe --tags --always --dirty</code>. Ein lokales Zip heißt dann etwa <code>LevelTimer-v2.26.0-3-gabc1234-dirty.zip</code> und lässt sich nicht mit einem echten Release verwechseln.</p>
<hr>
<h2 id="der-go-installer">Der Go-Installer</h2>
<p>Die Release-Pipeline deckt den öffentlichen Weg ab. Für meine eigenen Tests brauche ich das Gegenteil: einen schnellen Weg, die Arbeitskopie in meine WoW-Ordner zu bringen, für jede installierte Spielversion. Von Hand kopieren nervt spätestens beim dritten Mal, und eine alte Datei, die im Addon-Ordner liegen bleibt, kann unbemerkt veralteten Code laden. Darum gibt es <code>tools/installer</code>: ein kleines Go-Programm, nur mit der Standardbibliothek, getestet mit <code>go test</code> wie alles andere im Repository.</p>










<figure class="diagram">
    <div class="diagram-canvas" role="img" aria-label="Der Installer plant, bevor er schreibt. Der Plan ist ein Diff gegen das bereits Installierte, und nichts unter WTF wird je angefasst.">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 330" width="720" height="330">
  <defs>
    <marker id="ar-lt3-installer" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
      <path d="M0 0 L10 5 L0 10 z" class="d-arrowhead"/>
    </marker>
  </defs>

  <rect x="10" y="20" width="150" height="58" rx="9" class="d-box d-b"/>
  <text x="85" y="44" class="d-t d-bold" font-size="13" text-anchor="middle">Read .toc files</text>
  <text x="85" y="62" class="d-m" font-size="11.5" text-anchor="middle">file list + Media/</text>
  <line x1="162" y1="49" x2="188" y2="49" class="d-arrow" marker-end="url(#ar-lt3-installer)"/>

  <rect x="192" y="20" width="150" height="58" rx="9" class="d-box d-b"/>
  <text x="267" y="44" class="d-t d-bold" font-size="13" text-anchor="middle">Find WoW root</text>
  <text x="267" y="62" class="d-m" font-size="11.5" text-anchor="middle">-wow / WOW_DIR / scan</text>
  <line x1="344" y1="49" x2="370" y2="49" class="d-arrow" marker-end="url(#ar-lt3-installer)"/>

  <rect x="374" y="20" width="150" height="58" rx="9" class="d-box d-b"/>
  <text x="449" y="44" class="d-t d-bold" font-size="13" text-anchor="middle">Find flavors</text>
  <text x="449" y="62" class="d-m" font-size="11.5" text-anchor="middle">_retail_, _classic_era_ ...</text>
  <line x1="526" y1="49" x2="552" y2="49" class="d-arrow" marker-end="url(#ar-lt3-installer)"/>

  <rect x="556" y="20" width="154" height="58" rx="9" class="d-box d-y"/>
  <text x="633" y="44" class="d-t d-bold" font-size="13" text-anchor="middle">Build plan</text>
  <text x="633" y="62" class="d-m" font-size="11.5" text-anchor="middle">per addon and flavor</text>
  <line x1="633" y1="80" x2="633" y2="112" class="d-arrow" marker-end="url(#ar-lt3-installer)"/>

  <rect x="480" y="116" width="230" height="74" rx="9" class="d-box"/>
  <text x="595" y="138" class="d-t d-bold" font-size="13" text-anchor="middle">Compare bytes</text>
  <text x="595" y="156" class="d-m" font-size="11.5" text-anchor="middle">+ new   ~ updated   unchanged</text>
  <text x="595" y="173" class="d-m" font-size="11.5" text-anchor="middle">- stale (from old manifest)</text>
  <line x1="478" y1="153" x2="446" y2="153" class="d-arrow" marker-end="url(#ar-lt3-installer)"/>

  <rect x="226" y="116" width="216" height="74" rx="9" class="d-box"/>
  <text x="334" y="138" class="d-t d-bold" font-size="13" text-anchor="middle">Show plan, ask</text>
  <text x="334" y="156" class="d-m" font-size="11.5" text-anchor="middle">--dry-run stops here</text>
  <text x="334" y="173" class="d-m" font-size="11.5" text-anchor="middle">--yes skips the question</text>
  <line x1="224" y1="153" x2="192" y2="153" class="d-arrow" marker-end="url(#ar-lt3-installer)"/>

  <rect x="10" y="116" width="180" height="74" rx="9" class="d-box d-g"/>
  <text x="100" y="138" class="d-t d-bold" font-size="13" text-anchor="middle">Apply</text>
  <text x="100" y="156" class="d-m" font-size="11.5" text-anchor="middle">atomic writes, then</text>
  <text x="100" y="173" class="d-m" font-size="11.5" text-anchor="middle">.install-manifest.json</text>

  <rect x="10" y="236" width="700" height="62" rx="9" class="d-box d-r"/>
  <text x="360" y="260" class="d-t d-bold" font-size="13" text-anchor="middle">Hard guard: any path containing WTF is refused</text>
  <text x="360" y="280" class="d-m" font-size="12" text-anchor="middle">SavedVariables live under WTF, so the installer can never touch your settings or history</text>
</svg>

    </div>
    <figcaption class="diagram-caption">Der Installer plant, bevor er schreibt. Der Plan ist ein Diff gegen das bereits Installierte, und nichts unter WTF wird je angefasst.</figcaption>
</figure>

<p>Was er tut, der Reihe nach:</p>
<ol>
<li><strong>Liest die Dateiliste aus der <code>.toc</code>.</strong> Es gibt genau eine Stelle, die sagt, welche Dateien zum Addon gehören (die <code>.toc</code>), dazu alles unter <code>Media/</code>. Keine zweite Liste, die synchron bleiben muss. <code>LoadAddons</code> findet außerdem jeden Unterordner mit <code>&lt;Ordner&gt;/&lt;Ordner&gt;.toc</code>, sodass Level Time Goals und das Archiv automatisch dabei sind.</li>
<li><strong>Findet den WoW-Ordner.</strong> Reihenfolge: Flag <code>-wow</code>, dann Umgebungsvariable <code>WOW_DIR</code>, dann Auto-Erkennung. Die sucht an üblichen Orten unter Windows (Laufwerke <code>C:</code> bis <code>Z:</code>, Ordner wie <code>World of Warcraft</code>, <code>Games\World of Warcraft</code>, <code>Program Files (x86)\World of Warcraft</code>) und macOS (<code>/Applications/World of Warcraft</code>). <strong>Unter Linux gibt es keine Auto-Erkennung</strong>, dort übergibst du <code>-wow</code> oder setzt <code>WOW_DIR</code>.</li>
<li><strong>Findet die Spielversionen.</strong> Jeder Unterordner wie <code>_retail_</code> oder <code>_classic_era_</code> zählt. Du kannst <code>-wow</code> sogar auf einen solchen Ordner zeigen lassen, dann geht der Installer eine Ebene hoch.</li>
<li><strong>Baut einen Plan</strong> pro Addon und Spielversion durch Byte-Vergleich: neue Datei (<code>+</code>), geändert (<code>~</code>), unverändert oder veraltet (<code>-</code>), also früher installiert und nicht mehr in der <code>.toc</code>.</li>
<li><strong>Zeigt den Plan und fragt nach.</strong> <code>-dry-run</code> hört hier auf, <code>-yes</code> überspringt die Frage und aktualisiert standardmäßig die bereits installierten Spielversionen.</li>
<li><strong>Wendet ihn an.</strong> Jede Datei wird erst in eine temporäre Datei geschrieben und dann umbenannt, damit das Spiel nie eine halb geschriebene Datei liest. Danach schreibt er <code>.install-manifest.json</code> in den Addon-Ordner, mit Version, Dateiliste und angewendeten Migrationen.</li>
</ol>
<p>Das Manifest macht das Aufräumen veralteter Dateien sicher. Der Installer löscht nur Dateien, von denen er weiß, dass er sie selbst installiert hat. Bei alten manuellen Installationen ohne Manifest entfernt er nur Code-Dateien (<code>.lua</code>, <code>.toc</code>, <code>.xml</code>), die die aktuelle <code>.toc</code> nicht mehr referenziert.</p>
<h3 id="die-eine-regel-die-er-nie-brechen-darf">Die eine Regel, die er nie brechen darf</h3>
<p>SavedVariables sind der Ort, an dem die Daten der Spieler liegen: Historie, Einstellungen, alles. Sie liegen unter dem Ordner <code>WTF</code>. Der Installer verweigert deshalb jeden Pfad, der eine <code>WTF</code>-Komponente enthält, geprüft einmal für das Ziel und noch einmal für jede Datei, die er schreibt (<code>ensureNotConfigPath</code>, <code>safeJoin</code>). Außerdem lehnt er relative Pfade ab, die aus dem Addon-Ordner ausbrechen würden. Ein Tool, das bei einem Tippfehler deine Spieldaten überschreibt, wäre schlimmer als kein Tool.</p>
<p>Nach einer Installation sagt die Ausgabe, ob <code>/reload</code> im Spiel reicht oder ob der Client neu starten muss, weil sich die <code>.toc</code> geändert hat. WoW liest <code>.toc</code>-Dateien nur beim Start.</p>
<h3 id="benutzung">Benutzung</h3>
<p>Das <code>Makefile</code> verpackt die gängigen Fälle.</p>
<div class="os-tabs">
<div class="os-tab" data-label="Linux / macOS">
<p class="os-tab-label">Linux / macOS</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Interactive wizard: choose flavors, review the plan, confirm</span>
</span></span><span class="line"><span class="cl">make install
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Update every already-installed flavor without questions</span>
</span></span><span class="line"><span class="cl">make update
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Show what would change, write nothing</span>
</span></span><span class="line"><span class="cl">make dry-run
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Explicit WoW path (required on Linux)</span>
</span></span><span class="line"><span class="cl">make install <span class="nv">ARGS</span><span class="o">=</span><span class="s2">&#34;-flavors retail -wow &#39;</span><span class="nv">$HOME</span><span class="s2">/Games/World of Warcraft&#39;&#34;</span>
</span></span></code></pre></div>
</div>

<div class="os-tab" data-label="Windows (PowerShell)">
<p class="os-tab-label">Windows (PowerShell)</p>
<p>Du kannst <code>make</code> nutzen, falls vorhanden, das Go-Tool selbst braucht aber nur Go:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl"><span class="c"># Interactive wizard from the repository root</span>
</span></span><span class="line"><span class="cl"><span class="n">go</span> <span class="n">-C</span> <span class="n">tools</span><span class="p">/</span><span class="n">installer</span> <span class="n">run</span> <span class="p">.</span> <span class="n">-src</span> <span class="s2">&#34;</span><span class="nv">$PWD</span><span class="s2">&#34;</span> <span class="n">-version</span> <span class="n">dev</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c"># Dry run for one flavor with an explicit path</span>
</span></span><span class="line"><span class="cl"><span class="n">go</span> <span class="n">-C</span> <span class="n">tools</span><span class="p">/</span><span class="n">installer</span> <span class="n">run</span> <span class="p">.</span> <span class="n">-src</span> <span class="s2">&#34;</span><span class="nv">$PWD</span><span class="s2">&#34;</span> <span class="n">-version</span> <span class="n">dev</span> <span class="n">-dry-run</span> <span class="n">-yes</span> <span class="p">`</span>
</span></span><span class="line"><span class="cl">  <span class="n">-flavors</span> <span class="n">retail</span> <span class="n">-wow</span> <span class="s2">&#34;D:\Games\World of Warcraft&#34;</span>
</span></span></code></pre></div>
</div>

</div>

<p>Go installierst du nach <a href="https://go.dev/doc/install" rel="noopener">go.dev/doc/install</a>. Das Flag <code>-C</code> des <code>go</code>-Befehls braucht Go 1.20 oder neuer, die CI nutzt Go 1.27.</p>
<p>Dasselbe Programm baut auch den manuellen Download. <code>make package</code> startet es im <code>-package</code>-Modus und schreibt <code>dist/LevelTimer-&lt;version&gt;.zip</code> (mit dem Archiv-Addon darin) und <code>dist/StreamGoal-&lt;version&gt;.zip</code>. Das ist eine praktische lokale Generalprobe für das, was der Packager erzeugt, aber das offizielle Release-Zip kommt vom Packager, nicht von diesem Weg.</p>
<p>Wenn dich interessiert, wie ich mit Go-Tooling an anderer Stelle umgehe: <a href="/de/blog/go-docker/">Go-Anwendungen dockerisieren</a> behandelt eine andere Ecke desselben Werkzeugkastens.</p>
<hr>
<h2 id="weitere-go-tools-im-repository">Weitere Go-Tools im Repository</h2>
<p>Im Ordner <code>tools/</code> liegen weitere Programme. Je eine Zeile, denn sie gehören nicht zum Release-Weg selbst:</p>
<ul>
<li><strong><code>tools/addontest</code></strong> ist das Test-Harness aus <a href="/de/blog/level-time-2-testing-lua-with-go/">Teil 2</a>.</li>
<li><strong><code>tools/artwork</code></strong> zeichnet das CurseForge-Logo sowie Icon und Texturen im Spiel (<code>make artwork</code>), sodass die Grafiken reproduzierbarer Code sind statt Binärdateien, die niemand bearbeiten kann.</li>
<li><strong><code>tools/records</code></strong> holt Speedrun-Rekorde von speedrun.com und erzeugt <code>Speedrun/SpeedrunRecords.lua</code> neu (<code>make records</code>, braucht Internet).</li>
<li><strong><code>tools/flights</code></strong> liest die Flugzeiten, die das Addon selbst gemessen hat, aus den SavedVariables jeder Spielversion (nur lesend) und erzeugt <code>Assist/FlightTimesData.lua</code> (<code>make flights</code>). Die Projektnotizen sagen, man soll es vor einem Release laufen lassen, um die neuesten Messwerte mitzuliefern.</li>
</ul>
<hr>
<h2 id="so-schneide-ich-ein-release">So schneide ich ein Release</h2>
<p>Die Checkliste, der ich folge. Ersetze die Version durch deine nächste.</p>
<div class="os-tabs">
<div class="os-tab" data-label="Linux / macOS">
<p class="os-tab-label">Linux / macOS</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># 1. Be on a clean, up-to-date main</span>
</span></span><span class="line"><span class="cl">git switch main <span class="o">&amp;&amp;</span> git pull --ff-only
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># 2. Run what CI will run</span>
</span></span><span class="line"><span class="cl">make vet <span class="o">&amp;&amp;</span> make <span class="nb">test</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># 3. Tag and push the tag; this triggers the Release workflow</span>
</span></span><span class="line"><span class="cl">git tag v2.27.0
</span></span><span class="line"><span class="cl">git push origin v2.27.0
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># 4. Watch the run</span>
</span></span><span class="line"><span class="cl">gh run watch
</span></span></code></pre></div>
</div>

<div class="os-tab" data-label="Windows (PowerShell)">
<p class="os-tab-label">Windows (PowerShell)</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-powershell" data-lang="powershell"><span class="line"><span class="cl"><span class="n">git</span> <span class="k">switch</span> <span class="n">main</span><span class="p">;</span> <span class="n">git</span> <span class="n">pull</span> <span class="p">-</span><span class="n">-ff-only</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c"># Same checks as CI</span>
</span></span><span class="line"><span class="cl"><span class="n">make</span> <span class="n">vet</span><span class="p">;</span> <span class="k">if</span> <span class="p">($?)</span> <span class="p">{</span> <span class="n">make</span> <span class="n">test</span> <span class="p">}</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">git</span> <span class="n">tag</span> <span class="n">v2</span><span class="p">.</span><span class="py">27</span><span class="p">.</span><span class="py">0</span>
</span></span><span class="line"><span class="cl"><span class="n">git</span> <span class="n">push</span> <span class="n">origin</span> <span class="n">v2</span><span class="p">.</span><span class="py">27</span><span class="p">.</span><span class="py">0</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="n">gh</span> <span class="n">run</span> <span class="n">watch</span>
</span></span></code></pre></div>
</div>

</div>

<p>Die <a href="https://cli.github.com/" rel="noopener">GitHub CLI</a> (<code>gh</code>) ist optional; der Actions-Tab zeigt denselben Lauf. Sind die Tests grün, packt der Release-Job, legt das GitHub-Release an und lädt zu CurseForge hoch. CurseForge prüft eine neue Datei unter Umständen kurz, bevor sie öffentlich erscheint; das liegt nicht in meiner Hand.</p>
<p>Geht ein Release schief, gibt es in der Pipeline keinen Rollback-Knopf. Ich korrigiere nach vorn mit einem neuen Patch-Tag (<code>v2.27.1</code>), statt einen bestehenden Tag zu verschieben, denn verschobene Tags verwirren Packager, GitHub und CurseForge gleichermaßen.</p>
<hr>
<h2 id="was-ich-gelernt-habe">Was ich gelernt habe</h2>
<ul>
<li><strong>Der Standardweg soll der richtige Weg sein.</strong> Ein Tag, ein Befehl. Je weniger manuelle Schritte, desto weniger vergessene.</li>
<li><strong>Releases an Tests koppeln.</strong> <code>needs: test</code> kostet eine Zeile.</li>
<li><strong>Allow-Liste oder Deny-Liste ist eine echte Entscheidung.</strong> Der Packager arbeitet mit einer Deny-Liste. Das ist bequem, bis man vergisst, eine neue Datei zu ignorieren. Mein lokales <code>make package</code> arbeitet mit einer Allow-Liste (nur, was die <code>.toc</code> nennt) und dient als Gegenprobe.</li>
<li><strong>Werkzeuge bauen, die niemandem schaden können, auch dir selbst nicht.</strong> Der WTF-Schutz im Installer existiert, weil ich weiß, dass ich mich irgendwann bei einem Pfad vertippe.</li>
</ul>
<hr>
<h2 id="wie-geht-es-weiter">Wie geht es weiter?</h2>
<p>Im letzten Teil, <span class="link-upcoming">Teil 4: Goals und die öffentliche API</span>, zeige ich, wie Level Time Goals über eine exportierte API an Level Time andockt und warum die beiden Addons getrennt sind. Wenn du das Ergebnis ausprobieren willst: Die <a href="/de/page/level-time/">Level-Time-Seite</a> verlinkt CurseForge und GitHub.</p>
]]></content:encoded></item></channel></rss>