iohook
iohook copied to clipboard
feat: support custom binary download mirror site
trafficstars
Description
This change empower the prebulit installation support mirror registry.
Motivation and Context
Sometimes, github.com is unstable and hard to reach.
So it might be great to download the binary from other mirror registry.
How Has This Been Tested?
Use environment variable IOHOOK_BINARY_SITE.
$ IOHOOK_BINARY_SITE="some registry" npm run install
Or use .npmrc variable iohook_binary_site.
$ cat .npmrc
iohook_binary_site=<some registry>
$ npm run install
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My code follows the code style of this project.
- [x] My change requires a change to the documentation.
- [x] I have updated the documentation accordingly. ( I have updated
README.md, not website document.) - [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.