Skip to content

fix: cross-platform build#1072

Open
cocktailpeanut wants to merge 1 commit intoelectron:mainfrom
cocktailpeanut:main
Open

fix: cross-platform build#1072
cocktailpeanut wants to merge 1 commit intoelectron:mainfrom
cocktailpeanut:main

Conversation

@cocktailpeanut
Copy link
Copy Markdown

The rebuilder has been using the hard-coded process.platform value as the platform attribute all this time.

This means, no matter what platform option you pass in, it would just use the current OS platform.

Basically, cross platform prebuild has not been working at all.

Combined with the electron-builder fix here cocktailpeanut/electron-builder@73f751b - now you can do cross platform electron builds that include prebuilt binaries.

The rebuilder has been using the hard-coded `process.platform` value as the platform attribute all this time.

This means, no matter what platform option you pass in, it would just use the current OS platform.

Basically, cross platform prebuild has not been working at all.

Combined with the electron-builder fix here cocktailpeanut/electron-builder@73f751b - now you can do cross platform electron builds that include prebuilt binaries.
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 7, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.44%. Comparing base (29365ad) to head (ed1ca18).
⚠️ Report is 125 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1072   +/-   ##
=======================================
  Coverage   76.44%   76.44%           
=======================================
  Files          19       19           
  Lines         692      692           
  Branches      134      135    +1     
=======================================
  Hits          529      529           
  Misses        118      118           
  Partials       45       45           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

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

I think this is valid for prebuild modules but is invalid for modules powered via node-gyp. There should probably be checks in place to ensure that non-system-platform builds aren't even attempted for node-gyp builds

@erickzhao erickzhao self-assigned this Nov 7, 2023
@tmm1
Copy link
Copy Markdown

tmm1 commented Jun 22, 2025

Looks like this was resolved in #1153

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.

5 participants