Skip to content

fix(reactotron-app): Exclude default._ artifacts from release uploads - #1620

Open
itz-puneet wants to merge 1 commit into
infinitered:masterfrom
itz-puneet:fix/exclude-default-underscore-release-artifacts
Open

fix(reactotron-app): Exclude default._ artifacts from release uploads#1620
itz-puneet wants to merge 1 commit into
infinitered:masterfrom
itz-puneet:fix/exclude-default-underscore-release-artifacts

Conversation

@itz-puneet

Copy link
Copy Markdown

Closes #1329

Please verify the following:

  • yarn build-and-test:local passes — not run locally, see note below
  • I have added tests for any new features, if relevant — no test harness exists for this script
  • README.md (or relevant documentation) has been updated with your changes — n/a, no documented behaviour changes

Describe your PR

electron-builder emits default._ prefixed duplicates of the macOS dmg artifacts into the release folder. The upload filter in apps/reactotron-app/scripts/release.artifacts.js drops directories, .yml, .yaml and .blockmap files, but nothing catches these, so they get published alongside the real assets.

This is still happening on the most recent app release, reactotron-app@3.11.0:

default._Reactotron-3.11.0-arm64.dmg   ← duplicate
default._Reactotron-3.11.0.dmg         ← duplicate
Reactotron-3.11.0-arm64.dmg            ← real asset
Reactotron-3.11.0.dmg                  ← real asset

The fix adds one filter for the default._ prefix, in the same style as the filters above it.

Verification

I checked the filter against the complete 3.11.0 release asset list rather than only the two files named in the issue. It removes exactly the two duplicates and leaves all ten legitimate assets untouched:

Asset Result
default._Reactotron-3.11.0-arm64.dmg filtered
default._Reactotron-3.11.0.dmg filtered
Reactotron-3.11.0-arm64-mac.zip kept
Reactotron-3.11.0-arm64.dmg kept
Reactotron-3.11.0-mac.zip kept
Reactotron-3.11.0.AppImage kept
Reactotron-3.11.0.dmg kept
reactotron-app-3.11.0.x86_64.rpm kept
reactotron-app_3.11.0_amd64.deb kept
reactotron-app_3.11.0_amd64.snap kept
Reactotron.3.11.0.msi kept
Reactotron.Setup.3.11.0.exe kept

I chose startsWith("default._") over a broader pattern deliberately — this is a release script, and a looser filter risks dropping real assets.

Note on local verification

I was not able to run yarn build-and-test:local in my environment, so I have left that box unchecked rather than tick it untruthfully. The change is a three-line addition to a Node script; I verified it parses with node --check and validated the filter logic against the real asset names above. Since this script only runs during a release, CI on this PR will not exercise it either — worth a maintainer eye on the next release run.

electron-builder emits `default._` prefixed duplicates of the macOS dmg
artifacts into the release folder. The upload filter in
`release.artifacts.js` drops directories, `.yml`, `.yaml` and `.blockmap`
files, but not these, so they are published alongside the real assets.

The most recent `reactotron-app@3.11.0` release shows both:

    default._Reactotron-3.11.0-arm64.dmg
    default._Reactotron-3.11.0.dmg
    Reactotron-3.11.0-arm64.dmg
    Reactotron-3.11.0.dmg

Adds a `default._` prefix filter. Checked against the full 3.11.0 asset
list: it removes exactly those two duplicates and leaves the other ten
assets (zip, dmg, AppImage, rpm, deb, snap, msi, exe) untouched.
Copilot AI lite review requested due to automatic review settings September 3, 2026 21:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is narrowly scoped to the intended artifact filtering behavior and matches the stated requirement without affecting other release assets.

Pull request overview

This PR updates the Reactotron app release artifact upload script to prevent electron-builder’s macOS default._ duplicate DMG artifacts from being included in GitHub release uploads, addressing issue #1329.

Changes:

  • Add a filename prefix filter to exclude default._* artifacts from the release upload list.
  • Document the rationale inline alongside existing artifact filters.
File summaries
File Description
apps/reactotron-app/scripts/release.artifacts.js Adds a startsWith("default._") filter to prevent uploading electron-builder duplicate DMG artifacts.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

Remove default._Reactotron artifacts from releases

2 participants