-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
failed to build in Electron with utp-native error #2779
Comments
you need to configure electron forge to exclude native dependencies "files": ["build/**/*", "!node_modules/**/*.{mk,a,o,h}"],
"mac": {
"singleArchFiles": "node_modules/+(register-scheme|utp-native|fs-native-extensions)/**", is how you'd do it in electron builder, you need to find the equiv in forge |
^ This approach is now broken due to blanket dependency on |
it shouldn't, that approach enables native, doesn't disable it, so it does not matter if it's conditionally imported or not for this case? I think you're confused about something |
Sorry, this was meant as a update for original author to inform that he'll likely need to adjust |
yeah, electron is a special case because with |
@webtorrent
What version of this package are you using?
2.2.1
What operating system, Node.js, and npm version?
What happened?
When I run
electron-forge make
in GitHub actions with Mac OS, an error thrown:then in Ubuntu, another error thrown:
What did you expect to happen?
Building Electron & WebTorrent with no error.
Are you willing to submit a pull request to fix this bug?
No, I have no idea about how to fix this bug.
The text was updated successfully, but these errors were encountered: