From edc12adc17135e41a2254708c97a505f38fa6bb2 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 1 Aug 2026 06:03:19 +0000 Subject: [PATCH] fix(release): drop extension test files from the Windows zip too #62 pruned them from build-release.sh, which covers linux/macos/deb/rpm/ AppImage. The Windows job stages separately with Copy-Item -Recurse and kept shipping them: v3.8.9's tronbrowser-win-x64.zip contains moshpit.test.js (12077B) and moshpit-drift.test.js (4106B). Mirror the prune in the pwsh path so every platform matches. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 165b359..eedfb5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,6 +88,11 @@ jobs: Copy-Item apps/desktop/launcher/tronbrowser "$stage/tronbrowser" Copy-Item apps/desktop/launcher/tronbrowser.cmd "$stage/tronbrowser.cmd" Copy-Item -Recurse apps/desktop/extensions/ai-sidebar "$stage/extensions/ai-sidebar" + # Same wholesale-copy problem build-release.sh has: the vitest files + # next to the extension sources ride along into the zip. Chrome never + # loads them, and moshpit-drift.test.js imports a devDependency that + # cannot resolve from an unbundled extension. Drop them. + Get-ChildItem "$stage/extensions/ai-sidebar" -Filter *.test.js -Recurse | Remove-Item -Force Copy-Item LICENSE "$stage/LICENSE" "v${{ needs.create-release.outputs.version }}" | Out-File -Encoding ascii "$stage/VERSION" New-Item -ItemType Directory -Force -Path dist | Out-Null