node-virtualenv icon indicating copy to clipboard operation
node-virtualenv copied to clipboard

Electron Support

Open joshbg2k opened this issue 7 years ago • 1 comments

Has anyone had success building this project for Electron? I got it working quite easily in a development environment, but no success when packaging for distribution. I suspect that packaging with a prebuilt copy will do the trick, similar to the issue that SerialPort users were having, but I thought I'd pose the question here before going down the rabbit hole. It's a really great project and has come in very handy beyond my core need for it.

joshbg2k avatar Mar 23 '18 13:03 joshbg2k

I thought I'd answer my own question. Ultimately my problem was a path issue. This project is now running beautifully in my packaged electron app. Prebuild is a tool specifically for native node modules (C/C++), so it wouldn't apply to this project.

However I would add that there seems to be problems accessing files in the root directory of Electron, and that this is an Electron issue, due to end users being able to access this directory as well. I installed it in separate directory reserved for static files and assets. One day if it becomes an issue I may submit a PR that resolves this, but for now I'm just happy to continue building.

joshbg2k avatar Mar 26 '18 17:03 joshbg2k