Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support for cross-compilation.
Need to use forked iohook repository for now to provide proper iohook module also for arm64. Change to packages.json and .gitmodules can be reverted once wilix-team adds arm64 prebuilds to official iohook repository.
To test building the packages before merging this PR:
git clone --recursive --branch cross-compilation https://github.com/overcurrent/razer-macos.git
Build the old way in Terminal:
a) yarn
b) yarn dist
Build the new way:
a) edit release.sh if you have paid Apple Developer credentials, otherwise leave as is
b) run in Terminal: ./release.sh
Test also built packages from this branch here:
https://github.com/overcurrent/razer-macos/releases/tag/v0.4.5%2B_cross-compilation_fix
Intel: https://github.com/overcurrent/razer-macos/releases/download/v0.4.5%2B_cross-compilation_fix/Razer.macOS-0.4.5.dmg
M1: https://github.com/overcurrent/razer-macos/releases/download/v0.4.5%2B_cross-compilation_fix/Razer.macOS-0.4.5-arm64.dmg