Skip to content

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.

fix(release): the dry run collection skips the installers tauri build packs only for the updater (D10b)

purplec20b37a80157
diff --git a/scripts/release-dry-run.mjs b/scripts/release-dry-run.mjs
index fba85c67..c3b3dbda 100644
--- a/scripts/release-dry-run.mjs
+++ b/scripts/release-dry-run.mjs
@@ -248,6 +248,11 @@ function cmdCollect(platform, bundleDir, outDir, receiptFile) {
for (const kind of readdirSync(bundleDir).sort()) {
const kindDir = join(bundleDir, kind)
if (!statSync(kindDir).isDirectory()) continue
+ // msi-updater and nsis-updater: with the WebView2 bootstrapper embedded
+ // (D10) tauri build packs a second pair of installers without it, only to
+ // fill the updater archives in msi/ and nsis/. Same names, not a release
+ // file, and `tauri build` does not list them among its bundles either.
+ if (kind.endsWith('-updater')) continue
for (const name of readdirSync(kindDir).sort()) {
const file = join(kindDir, name)
if (!statSync(file).isFile() || !KEPT.test(name)) continue
diff --git a/src/lib/__tests__/release-dry-run.test.ts b/src/lib/__tests__/release-dry-run.test.ts
index 39fd9659..555a3aae 100644
--- a/src/lib/__tests__/release-dry-run.test.ts
+++ b/src/lib/__tests__/release-dry-run.test.ts
@@ -493,6 +493,18 @@ describe('release-dry-run.mjs collect, executed', () => {
}
})
+ it('leaves out the installers tauri build packs only for the updater archives', () => {
+ // CI 9 (D10): bundle/msi-updater and bundle/nsis-updater hold installers
+ // with the same names as the real ones, and the collection stopped on them.
+ const result = collect('windows', [
+ ...WINDOWS,
+ 'nsis-updater/Locally Uncensored_3.0.6_x64-setup.exe',
+ 'msi-updater/Locally Uncensored_3.0.6_x64_en-US.msi',
+ ])
+ expect(result.code).toBe(0)
+ expect(result.kept).toEqual(['DRY-RUN-NOT-FOR-RELEASE.txt', ...WINDOWS.map((f) => f.split('/')[1])].sort())
+ })
+
it('writes one sha256 line per file into the job summary', () => {
const result = collect('windows', WINDOWS)
const lines = result.summary.split('\n').filter((l) => /^- `.+` sha256 `[0-9a-f]{64}`$/.test(l))