Open abacaj opened 8 years ago
Never tried, to be honest, but it should work. electron
is a native node.js package, so it's platform specific. I think that's the unique constrain.
For instance, if you create the nar
archive in OSX, and then you want to run it in Linux, you won't be able to do it. As solution, you can re-build electron on the flight from npm scripts
-> preinstall
command hook. Other users did this without troubles when working with native packages.
You should be able embed electron
as tree or global dependency in nar
.
Give it a try and let me know. It would be great to create a mini tutorial about the process, other users would be interested in solutions like this.
Curious to see if nar can serve as the run-time for an electron application. (https://github.com/atom/electron)
I don't see why not, and has anyone done this - it seems like a match made in heaven.