timotejroiko / sweph

The definitive Swiss Ephemeris bindings for Node.js
Other
93 stars 15 forks source link

Electronjs #5

Closed krishnaguragain closed 1 year ago

krishnaguragain commented 2 years ago

Will this work with electronjs for mac apps?

krisztianb commented 2 years ago

If you install this Node.js package it gets compiled on your local system. Therefore the output (binary) is created for your particular system. You can forge it into your ElectronJs application like so: https://stackoverflow.com/questions/38361996/how-can-i-bundle-a-precompiled-binary-with-electron/

But it will only work on systems like yours and not cross platform.

timotejroiko commented 2 years ago

i have not tested it with mac or electron but it should work

timotejroiko commented 1 year ago

to close this issue, Electron supports native node addons as long as they are compiled properly for Electron, take a look at their guide: https://www.electronjs.org/docs/latest/tutorial/using-native-node-modules

Im gonna go ahead and close this, let me know if there's any issues!