matrix-org / matrix-rust-sdk-crypto-nodejs

Apache License 2.0
3 stars 5 forks source link

Consider common environment variables in the download script #8

Closed sandhose closed 1 year ago

sandhose commented 1 year ago

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