Skip to content

Commit ac037ed

Browse files
ralyodioclaude
andauthored
fix(release): drop extension test files from the Windows zip too (#63)
#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) <noreply@anthropic.com>
1 parent 7c636d4 commit ac037ed

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ jobs:
8888
Copy-Item apps/desktop/launcher/tronbrowser "$stage/tronbrowser"
8989
Copy-Item apps/desktop/launcher/tronbrowser.cmd "$stage/tronbrowser.cmd"
9090
Copy-Item -Recurse apps/desktop/extensions/ai-sidebar "$stage/extensions/ai-sidebar"
91+
# Same wholesale-copy problem build-release.sh has: the vitest files
92+
# next to the extension sources ride along into the zip. Chrome never
93+
# loads them, and moshpit-drift.test.js imports a devDependency that
94+
# cannot resolve from an unbundled extension. Drop them.
95+
Get-ChildItem "$stage/extensions/ai-sidebar" -Filter *.test.js -Recurse | Remove-Item -Force
9196
Copy-Item LICENSE "$stage/LICENSE"
9297
"v${{ needs.create-release.outputs.version }}" | Out-File -Encoding ascii "$stage/VERSION"
9398
New-Item -ItemType Directory -Force -Path dist | Out-Null

0 commit comments

Comments
 (0)