Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: unpacked native node file #8392

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Conversation

beyondkmp
Copy link
Collaborator

@beyondkmp beyondkmp commented Aug 2, 2024

All npm C++ native modules generate a file ending in .node, which is an executable file. Currently, it is default practice to place these inside app.asar, which seems problematic for several reasons:

  1. .node files are executables that need to be signed. If packed directly into app.asar, they cannot be signed.

  2. According to official documentation, placing .node files inside app.asar can lead to performance issues and file not found errors.
    https://www.electronjs.org/docs/latest/tutorial/asar-archives
    image

  3. Looking at applications like VSCode and Slack, they currently default to placing .node files in app.asar.unpack.

Therefore, I suggest that during the smart unpack process, we automatically detect files ending in .node and place them in the unpack directory.

Copy link

changeset-bot bot commented Aug 2, 2024

🦋 Changeset detected

Latest commit: 5774e6f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
app-builder-lib Patch
dmg-builder Patch
electron-builder-squirrel-windows Patch
electron-builder Patch
electron-forge-maker-appimage Patch
electron-forge-maker-nsis-web Patch
electron-forge-maker-nsis Patch
electron-forge-maker-snap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Aug 2, 2024

Deploy Preview for car-park-attendant-cleat-11576 ready!

Name Link
🔨 Latest commit 5774e6f
🔍 Latest deploy log https://app.netlify.com/sites/car-park-attendant-cleat-11576/deploys/66ad11586a16c0000829df36
😎 Deploy Preview https://deploy-preview-8392--car-park-attendant-cleat-11576.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants