sharkdp / insect

High precision scientific calculator with support for physical units
https://numbat.dev/
MIT License
3.17k stars 125 forks source link

Generate linux binaries for armhf and arm64 #363

Closed archisman-panigrahi closed 1 year ago

archisman-panigrahi commented 1 year ago

How do you compile the binaries in releases page? Can you generate binaries for arm in the next release?

Also, can you post instructions about how to compile these binaries?

triallax commented 1 year ago

See https://github.com/sharkdp/insect/issues/297 and #298.

Tl;DR we don't build binaries for Insect anymore, as the tool we used to generate them (Nexe) bundled very old Node versions. If you have any alternatives, feel free to suggest them.

However, note that Insect's code ultimately compiles down to JavaScript, so as long as you have Node 12 or later installed, you can just build Insect and run the generated JS file. To do so, clone this repo, then run npm install && npm run build. This will produce an index.cjs file, which you should be able to run by just running ./index.cjs. Strictly speaking, it is not a binary, but a file containing minified and bundled JS, but it should work nonetheless.

If you face any issues with this, feel free to post them here.