From bb758580d7732467a7f64742abc48a59afea6a5b Mon Sep 17 00:00:00 2001 From: avi Date: Mon, 5 Oct 2026 06:28:41 -0500 Subject: [PATCH] fix(build): prepackage hook rebuilds dist before electron-builder Root cause of 0.1.8-0.1.12 shipping stale code: electron-builder packs whatever dist/ happens to contain; dist was last built 2026-10-04 10:02, so releases 0.1.8..0.1.12 all carried byte-identical bundles that predate the systemd-run handoff fix (12977e1) and the curl downloader (9afe49c). prepackage guarantees a fresh build on every npm run package. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c5472ce..56ffb18 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dev": "concurrently -k \"npm run build:watch\" \"wait-on dist/main.js && npm run electron\"", "start": "npm run build && npm run electron", "lint": "tsc --noEmit", + "prepackage": "npm run build", "test": "node tests/run-project-test.mjs && node tests/run-chapters-test.mjs && node tests/run-wikilinks-test.mjs && node tests/run-office-export-test.mjs && node tests/run-migration-test.mjs && node tests/run-editor-test.mjs && node tests/run-fullbook-test.mjs && node tests/run-print-test.mjs && node tests/run-update-import-test.mjs && node tests/run-update-installer-test.mjs && node tests/run-snapshots-test.mjs && node tests/run-search-test.mjs", "package": "electron-builder" },