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

Arm binaries for dfu-programmer etc. #378

Open
1 of 3 tasks
Muirium opened this issue Jul 16, 2022 · 4 comments
Open
1 of 3 tasks

Arm binaries for dfu-programmer etc. #378

Muirium opened this issue Jul 16, 2022 · 4 comments
Labels

Comments

@Muirium
Copy link

Muirium commented Jul 16, 2022

The command line utilities QMK Toolbox uses internally are currently all Intel builds on Mac. Run file * on the Resources directory inside the app to check them out. This is not a problem yet, as they run under Rosetta. But fully native / Universal builds are a good idea going forward as Rosetta is a transitional technology which won't stay around forever. I substituted dfu-programmer for the Apple Silicon native version in Homebrew. Works perfectly. But now I've updated QMK Toolbox to the current version, I see they are Intel only again.

Feature Request Type

  • Core functionality
  • Alteration (enhancement/optimization) of existing feature(s)
  • New behavior

Description

@fauxpark
Copy link
Member

The Toolbox itself is currently built as a universal binary, but the deployment target is set to 10.15 (following Homebrew minimum system requirements because the flasher binaries are taken from the bottles). Even then, I don't think Brew builds universal binaries - the bottles are separate for Intel and Apple Silicon.

@Muirium
Copy link
Author

Muirium commented Jul 16, 2022

True!

dfu-programmer: Mach-O 64-bit executable arm64
dfu-util: Mach-O 64-bit executable x86_64

I’m not technical enough to know how hard it is to “stitch” both architectures into a single Universal binary. Hadn’t even realised my build was exclusively Arm64.

Obviously enough, Universal is the way to go. Plenty of Intel Macs still out there. For now…

@joxelstudios
Copy link

Commenting here instead of creating a new issue. Just tested the latest release (0.3.0) and can confirm the intel DFU binaries run and flash fine under Rosetta. I flashed an update for my Nuphy Air60 V2 on an M1 Max Macbook Pro.

@jajajaime
Copy link

Adding a comment as well that using the latest release 0.3.3 did not give me any issues on a MacBook Pro M1 Pro for a Nuphy Air75 V2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants