arch icon indicating copy to clipboard operation
arch copied to clipboard

Add support for non-Intel architectures

Open ilg-ul opened this issue 5 years ago • 6 comments

I have a CLI tool that installs different binaries depending on the system architecture, and it worked fine so far for Windows, macOS and Intel GNU/Linux, but when I tried it on a Raspberry Pi, it installed the x86 binary, which obviously is not the desired effect.

Since Node.js is available on non-Intel architectures too, it would be recommended to support them too, and by all means avoid converting from one architecture to another.

ilg-ul avatar Jun 27 '20 19:06 ilg-ul

It looks like the possible values for os.arch() are 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64' based on https://nodejs.org/api/os.html#os_os_arch so we should attempt to return similar values.

I would accept a PR to add support for these additional values.

feross avatar Nov 18 '20 19:11 feross

I would accept a PR to add support for these additional values.

I found an easier solution, I removed the dependency on 'arch' and reorganised my code.

ilg-ul avatar Nov 18 '20 19:11 ilg-ul

This one is also an issue for me. I can provide code for my case, but I see you have an exsting PR that is 6 months old and still sitting there. Is this repo still active?

MatthewFagan avatar Sep 29 '21 16:09 MatthewFagan

same problem. It will misleading other packages depend on this 74f7aae3-9685-4b3f-83e5-8bba8c900771

Leonewu avatar Jan 21 '24 05:01 Leonewu

Is this repo still active?

The most recent commit is from Oct 28, 2020.

ilg-ul avatar Jan 21 '24 05:01 ilg-ul

Could someone try v3.0.0? It has #22 merged which should fix this issue.

XhmikosR avatar Feb 12 '24 08:02 XhmikosR