Skip to content

Exclude unnecessary items from ASAR archive#3551

Merged
fredrikekelund merged 1 commit into
trunkfrom
f26d/exclude-unnecessary-items-from-asar
May 20, 2026
Merged

Exclude unnecessary items from ASAR archive#3551
fredrikekelund merged 1 commit into
trunkfrom
f26d/exclude-unnecessary-items-from-asar

Conversation

@fredrikekelund
Copy link
Copy Markdown
Contributor

@fredrikekelund fredrikekelund commented May 20, 2026

Related issues

How AI was used in this PR

Claude did the implementation based on my spec.

Proposed Changes

While experimenting with #3545, I got curious about what exactly makes the Studio installer so large. I noticed that the Contents/Resources/app.asar archive contained some directories that aren't needed:

  • __mocks__
  • e2e
  • installers
  • src

This PR removes them from the output by changing the ignore config in forge.config.ts. Several entries in that array aren't relevant after the monorepo migration, either, so Claude cleaned up a bunch of additional ones.

Testing Instructions

CI should pass.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@fredrikekelund fredrikekelund requested a review from a team May 20, 2026 11:57
@fredrikekelund fredrikekelund self-assigned this May 20, 2026
@wpmobilebot
Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing a8cf869 vs trunk

app-size

Metric trunk a8cf869 Diff Change
App Size (Mac) 1376.03 MB 1372.31 MB 3.72 MB 🟢 -0.3%

site-editor

Metric trunk a8cf869 Diff Change
load 1522 ms 1489 ms 33 ms ⚪ 0.0%

site-startup

Metric trunk a8cf869 Diff Change
siteCreation 8570 ms 8578 ms +8 ms ⚪ 0.0%
siteStartup 4951 ms 4943 ms 8 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

Copy link
Copy Markdown
Contributor

@nightnei nightnei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch 👍

@fredrikekelund fredrikekelund merged commit 10dd7aa into trunk May 20, 2026
12 checks passed
@fredrikekelund fredrikekelund deleted the f26d/exclude-unnecessary-items-from-asar branch May 20, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants