AI media harness for planning, generating, and editing locally
TypeScript
Keep release signature files local
Bittic97dccc5f9a4
diff --git a/docs/updater.md b/docs/updater.mdindex 302cb03..071307a 100644--- a/docs/updater.md+++ b/docs/updater.md@@ -53,8 +53,10 @@ all published stable releases. It then builds using the existing updater signingkey and validates the manifest's version, URLs and signature contents againstthe local artifacts. The private key remains on the build machine.-Publishing creates a draft, uploads only this version's installers, their `.sig`-files and portable ZIP, then uploads `latest.json`. After verifying that every+Publishing creates a draft, uploads only this version's installers and portable+ZIP, then uploads `latest.json`. Signature files (`.sig`) stay local for manifest+validation; the updater reads the signatures embedded in `latest.json`.+After verifying that everyexpected asset is uploaded with the correct size, it publishes the draft as thelatest stable release. This is when the existing updater endpoint begins servingthe new manifest. Release notes from `UPDATE_NOTES_FILE` appear in both the app@@ -77,8 +79,9 @@ For a local build followed by manual publishing, use the existing steps:3. Run `release.cmd`. It builds signed installers, copies their `.sig` files,and writes `artifacts/latest.json` with the version, signatures and download URLs.4. Create a GitHub Release in `bitti-ai/slopus` with tag **`v<version>`**, matching- the manifest URLs. Upload `latest.json`, the setup EXE and its `.sig`, and the- MSI and its `.sig` if produced. Upload the portable ZIP as a separate download.+ the manifest URLs. Upload `latest.json`, the setup EXE, and the MSI if produced.+ Upload the portable ZIP as a separate download. Keep the `.sig` files local;+ their contents are already embedded in `latest.json`.Publish the release as the latest stable release after all assets are present.The app requestsdiff --git a/scripts/publish-release.mjs b/scripts/publish-release.mjsindex 6ab7fba..a3ad90c 100644--- a/scripts/publish-release.mjs+++ b/scripts/publish-release.mjs@@ -52,7 +52,8 @@ export function releaseFiles(root, version) {if (entry.url !== expected) throw new Error(`Updater URL does not match this release: ${key}`);const signature = readFileSync(resolve(directory, `${name}.sig`), 'utf8').trim();if (!signature || entry.signature !== signature) throw new Error(`Updater signature mismatch: ${name}`);- names.add(name); names.add(`${name}.sig`);+ // Keep signature files local; the updater reads signatures from latest.json.+ names.add(name);}if (!manifest.platforms[`${target}-nsis`]) throw new Error('Missing NSIS updater target.');names.add(`${stem}-portable.zip`);diff --git a/scripts/publish-release.test.mjs b/scripts/publish-release.test.mjsindex 62f2218..ac52b60 100644--- a/scripts/publish-release.test.mjs+++ b/scripts/publish-release.test.mjs@@ -75,7 +75,7 @@ it('uploads only current artifacts, puts the manifest last, and publishes afterexpect(uploads).toHaveLength(2);expect(uploads[0][1]).not.toContain(join(root, 'artifacts/latest.json'));expect(uploads[1][1][3]).toBe(join(root, 'artifacts/latest.json'));- expect(JSON.stringify(uploads)).not.toMatch(/private\.key|0\.1\.0/);+ expect(JSON.stringify(uploads)).not.toMatch(/private\.key|0\.1\.0|\.sig/);expect(calls.at(-1)[1]).toEqual(expect.arrayContaining(['--draft=false', '--latest', '--verify-tag']));});