The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(release): der Release-Lauf fordert die Updater-Artefakte selbst an
David3eb12157855a
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 282bbca8..cff6c1e1 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -259,7 +259,14 @@ jobs:# and the input does nothing. The enforce-prerelease job below is what# actually holds the promise.prerelease: true- args: ${{ matrix.args }}+ # The updater artefacts, and with them latest.json and the .sig files,+ # are requested HERE, in the one lane that holds the signing key, and+ # not in the checked-in tauri.conf.json: ci.yml builds that file+ # without a key (scripts/ci-tauri-build.sh), and a config that asks+ # for signed artefacts cannot be built by anyone who lacks the key+ # (a0030ad2, the exit-1-after-bundling defect of v2.6.7). The overlay+ # is merged on top of the checked-in config by `tauri build`.+ args: --config src-tauri/tauri.release.conf.json ${{ matrix.args }}# The promise above, made real for every trigger. Runs after the binaries are# attached, so a release published as a full release is put back beforediff --git a/scripts/ci-tauri-build.sh b/scripts/ci-tauri-build.shindex 92339ac2..2b9a25f7 100755--- a/scripts/ci-tauri-build.sh+++ b/scripts/ci-tauri-build.sh@@ -48,8 +48,10 @@# That is the intended reading — "this tree cannot be built by anyone who is not# the release runner" is a finding, not a false alarm — but it does mean the# release branch has to pass the updater-artifact request to the release build-# (`tauri build --config …` in release.yml) instead of baking it into the-# checked-in config. See the report for the human-side task.+# instead of baking it into the checked-in config. That is what release.yml+# does: `--config src-tauri/tauri.release.conf.json` on its tauri-action step,+# a one-field overlay this script never reads (release-build-gate.test.ts+# holds both halves of that arrangement).## WHAT "PASSED" MEANS HERE# ------------------------diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 82eec510..8053f166 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -38,7 +38,6 @@},"bundle": {"active": true,- "createUpdaterArtifacts": "v1Compatible","targets": "all","publisher": "PurpleDoubleD","copyright": "Copyright (c) 2026 PurpleDoubleD. Licensed under AGPL-3.0.",diff --git a/src-tauri/tauri.release.conf.json b/src-tauri/tauri.release.conf.jsonnew file mode 100644index 00000000..19908174--- /dev/null+++ b/src-tauri/tauri.release.conf.json@@ -0,0 +1,5 @@+{+ "bundle": {+ "createUpdaterArtifacts": "v1Compatible"+ }+}diff --git a/src/lib/__tests__/die-app-heisst-wie-die-app.test.ts b/src/lib/__tests__/die-app-heisst-wie-die-app.test.tsindex 057674ce..c38d4460 100644--- a/src/lib/__tests__/die-app-heisst-wie-die-app.test.ts+++ b/src/lib/__tests__/die-app-heisst-wie-die-app.test.ts@@ -27,6 +27,9 @@ const basis = lies('tauri.conf.json')const windows = lies('tauri.windows.conf.json')const linux = lies('tauri.linux.conf.json')const macos = lies('tauri.macos.conf.json')+// Das Overlay, das nur der Release-Lauf auf die Basis legt (release.yml).+const release = lies('tauri.release.conf.json')+const releaseYml = readFileSync(resolve(TAURI, '../.github/workflows/release.yml'), 'utf8')describe('wie das ausgelieferte Programm heisst', () => {it('nirgends steht Experiment', () => {@@ -76,10 +79,19 @@ describe('ob ein Update je ankommt', () => {expect(eps.join(' ')).not.toMatch(/\/v?\d+\.\d+\.\d+\//)})- it('der Bau legt die Update-Dateien ueberhaupt an', () => {+ it('der Release-Bau legt die Update-Dateien an, die Basis fordert sie nicht', () => {// Ohne createUpdaterArtifacts entsteht keine latest.json und keine- // Signatur, und dann ist der Endpunkt oben eine Adresse ohne Ziel.- expect(basis.bundle?.createUpdaterArtifacts).toBe('v1Compatible')+ // Signatur, und dann ist der Endpunkt oben eine Adresse ohne Ziel. Das+ // Feld gehoert trotzdem NICHT in die Basis: mit ihm verlangt der Bundler+ // den privaten Schluessel, den nur der Release-Laeufer hat, und das+ // keylose Bau-Tor in ci.yml (scripts/ci-tauri-build.sh) geht rot, bevor+ // release.yml ueberhaupt baut (gemessen 06.09.2026 auf Ubuntu 22.04: deb,+ // rpm und AppImage fertig, dann Exit 1 mit "no private key"). Deshalb+ // fordert der Release-Lauf die Artefakte selbst an, per Overlay auf dem+ // tauri-action-Schritt.+ expect(basis.bundle?.createUpdaterArtifacts).toBeUndefined()+ expect(release.bundle?.createUpdaterArtifacts).toBe('v1Compatible')+ expect(releaseYml).toMatch(/^\s*args:\s*--config src-tauri\/tauri\.release\.conf\.json(\s|$)/m)})it('Ziel und Artefakte gehoeren zusammen', () => {@@ -89,9 +101,11 @@ describe('ob ein Update je ankommt', () => {// und DANACH mit "A public key has been found, but no private key" auf// Exit 1 geht (gemessen am 31.08.2026 unter Windows, am 01.09. auf dem// Mac). Verboten ist die Kombination, nicht das einzelne Feld.+ // Geprueft wird, was der Release-Bau wirklich sieht: Basis plus Overlay.+ const gebuendelt = { ...basis.bundle, ...release.bundle }const zielt = (basis.plugins?.updater?.endpoints ?? []).length > 0- const signiert = basis.bundle?.createUpdaterArtifacts !== undefined- && basis.bundle?.createUpdaterArtifacts !== false+ const signiert = gebuendelt.createUpdaterArtifacts !== undefined+ && gebuendelt.createUpdaterArtifacts !== falseexpect(signiert && !zielt, 'Artefakte an, aber kein Ziel').toBe(false)})diff --git a/src/lib/__tests__/release-build-gate.test.ts b/src/lib/__tests__/release-build-gate.test.tsindex e065b955..d917b130 100644--- a/src/lib/__tests__/release-build-gate.test.ts+++ b/src/lib/__tests__/release-build-gate.test.ts@@ -15,8 +15,9 @@* artefacts while `plugins.updater.pubkey` sat next to it, so the bundler* demanded a private key that only the release runner has. Anybody else —* contributor, fork, AGPL-3.0 §6 recipient — got exit 1. Fixed in a0030ad2 by- * removing that one field; `updater-tot-und-unsigniert.test.ts` keeps the- * config half from coming back.+ * removing that one field. The release lane asks for the updater artefacts+ * itself (`--config src-tauri/tauri.release.conf.json`, see the last describe+ * below); `die-app-heisst-wie-die-app.test.ts` keeps the config half honest.** This file keeps the OTHER half from coming back: the reason nobody noticed* for a whole release. `.github/workflows/ci.yml` ran `npm run build` (vite),@@ -162,6 +163,33 @@ describe('ci.yml actually tries to build the product', () => {})})+describe('the keyless gate and the signed release ask for different things', () => {+ // Measured 2026-09-06 on a fresh Ubuntu 22.04 box, at 16b2b0f6: with+ // `bundle.createUpdaterArtifacts` back in the checked-in config (127e73bc),+ // the gate script bundled deb, rpm and AppImage and then exited 1 on the+ // signing complaint — the 10bfa0d7 shape exactly. release.yml's build-tauri+ // sits behind `needs: gate`, so that red would have meant no release assets+ // at all. The updater artefacts are therefore requested by the release lane+ // alone, through an overlay the gate never sees.+ const conf = (rel: string) => JSON.parse(read(rel))++ it('the checked-in configs can be built without a key', () => {+ for (const f of ['tauri.conf.json', 'tauri.windows.conf.json', 'tauri.linux.conf.json', 'tauri.macos.conf.json']) {+ expect(conf(`src-tauri/${f}`).bundle?.createUpdaterArtifacts, f).toBeUndefined()+ }+ })++ it('the release lane requests the updater artefacts through the overlay', () => {+ expect(conf('src-tauri/tauri.release.conf.json').bundle?.createUpdaterArtifacts).toBe('v1Compatible')+ const build = withoutComments(jobBlock(RELEASE_YML, 'build-tauri'))+ expect(build).toMatch(/^\s*args:\s*--config src-tauri\/tauri\.release\.conf\.json(\s|$)/m)+ })++ it('and the gate never sees that overlay', () => {+ expect(withoutComments(jobBlock(CI_YML, 'tauri-build'))).not.toMatch(/tauri\.release\.conf\.json/)+ })+})+describe('a longer gate must not mean a longer window at Latest', () => {// The cost of the job above: `gate` now compiles and bundles on two// platforms, so the stretch between "Publish release" and "enforce-prerelease