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

Build for ElectronJS #2035

Merged
merged 1 commit into from
Apr 11, 2019
Merged

Build for ElectronJS #2035

merged 1 commit into from
Apr 11, 2019

Conversation

lissyx
Copy link
Collaborator

@lissyx lissyx commented Apr 10, 2019

No description provided.

@lissyx lissyx self-assigned this Apr 10, 2019
@lissyx lissyx requested a review from reuben April 10, 2019 08:36
@lissyx lissyx force-pushed the electronjs branch 3 times, most recently from 938698b to dcc22a7 Compare April 10, 2019 10:00
@lissyx
Copy link
Collaborator Author

lissyx commented Apr 10, 2019

We can build for a lot of ElectronJS flavors, but I suggest we stick with testing at least linux/macOS/windows on amd64. We can try and add more testing later, depending on people's usecases and feedback.

@lissyx lissyx force-pushed the electronjs branch 10 times, most recently from fd1a33f to dcee783 Compare April 10, 2019 12:32
NODE_RUNTIME=--runtime=electron \
clean node-wrapper
done;

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this roughly doubling the size of the Node package as well as the time to build it? Could we separate Node.JS and Electron packages, or does that not make sense in the Node ecosystem?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems that it does not make sense in the ecosystem, but it's not really doubling, we just add a few deepspeech.node binaries, ranging from 50k to 100k. All docs I found would pull from npmjs for ElectronJS. And build time does increase, but it's marginal, takes < 30 secs for each ElectronJS instance. We would win much more build time by doing the heavy lifting of producing ready-to-use Docker images.

Copy link
Contributor

Choose a reason for hiding this comment

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

Understood. My review+ remains :)

@lissyx lissyx force-pushed the electronjs branch 11 times, most recently from 7e9655f to 145510c Compare April 10, 2019 20:08
@lissyx lissyx merged commit a059894 into mozilla:master Apr 11, 2019
@lock
Copy link

lock bot commented May 11, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators May 11, 2019
@lissyx lissyx deleted the electronjs branch January 13, 2020 19:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants