Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compilation fix #455

Closed
wants to merge 7 commits into from
Closed

Conversation

overcurrent
Copy link
Contributor

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:

  1. git clone --recursive --branch cross-compilation https://github.com/overcurrent/razer-macos.git

  2. Build the old way in Terminal:
    a) yarn
    b) yarn dist

  3. 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

@1kc
Copy link
Owner

1kc commented Oct 1, 2021

closed as request by @overcurrent

@1kc 1kc closed this Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants