This changes the build install script to consider common environment variables to override the platform and arch for which it should download the bindings.
Those environment variable are understood by tools like node-gyp, so it is quite common to set them when you intend to install dependencies for another platform/arch than the current one.
This changes the build install script to consider common environment variables to override the platform and arch for which it should download the bindings. Those environment variable are understood by tools like node-gyp, so it is quite common to set them when you intend to install dependencies for another platform/arch than the current one.
In hookshot I had to work around this with a script which did the downloading itself: https://github.com/matrix-org/matrix-hookshot/pull/801/files#diff-3c8e5150f378e5d2ddc0c7d17a724aa76b5fb03970555ee56c6ecf28eb690a39