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

[macOS] Update flasher binaries from Mojave bottles #292

Merged
merged 1 commit into from
Aug 1, 2021
Merged

[macOS] Update flasher binaries from Mojave bottles #292

merged 1 commit into from
Aug 1, 2021

Conversation

fauxpark
Copy link
Member

@fauxpark fauxpark commented Aug 1, 2021

Description

Bintray is dead, so the process is a little more complicated than it was for #100. Homebrew now distributes bottles using Github Packages, which is cool but annoying for this use case.

For future reference:

  • Download container images with skopeo (specify only sha256, not version):
skopeo --insecure-policy copy docker://ghcr.io/homebrew/core/avrdude@sha256:5c0867bdad2fb50c76c6b6f7dd97b3e17051ae7affafd3c926c075cd15a5a83c dir:./avrdude
skopeo --insecure-policy copy docker://ghcr.io/homebrew/core/bootloadhid@sha256:aed24639c70031d122a884d3a821aad2b0d41e37fb63960d721f957c75f98608 dir:./bootloadhid
skopeo --insecure-policy copy docker://ghcr.io/homebrew/core/dfu-programmer@sha256:2c8622f716ad4c6d26ef00033c174f924e194379be841db43b3b9bb7df9f9e10 dir:./dfu-programmer
skopeo --insecure-policy copy docker://ghcr.io/homebrew/core/dfu-util@sha256:98db9067c2c03887591626da072b6496ef5aed8b0bf3c3586fffabf88a36712e dir:./dfu-util
skopeo --insecure-policy copy docker://ghcr.io/homebrew/core/libftdi0@sha256:3fd315e8763390cb974ab034bf5b13f861078eb533134032b1b8a279c3e9bdf5 dir:./libftdi0
skopeo --insecure-policy copy docker://ghcr.io/homebrew/core/libusb-compat@sha256:fec297a46ef90f6bb7dbdb49c76620491bfe231d739c05c19e77bc330ed61f51 dir:./libusb-compat
skopeo --insecure-policy copy docker://ghcr.io/homebrew/core/libusb@sha256:e44537d94025e3c728abb1c3c8c228a0b83784550aed0e81c7ea2ba4f73cce66 dir:./libusb
skopeo --insecure-policy copy docker://ghcr.io/homebrew/core/teensy_loader_cli@sha256:121ddc1142776b28547f16a6a030576f6affaa0da3baa47ea1f52925fc4e185f dir:./teensy_loader_cli
  • Decompress tarballs (currently manually, pass --dest-decompress in future skopeo releases)
  • Fix Homebrew placeholders:
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/libusb/lib/libusb-1.0.0.dylib" "@executable_path/../Frameworks/libusb-1.0.0.dylib" avrdude
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/libftdi0/lib/libftdi.1.dylib" "@executable_path/../Frameworks/libftdi.1.dylib" avrdude
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/libusb-compat/lib/libusb-0.1.4.dylib" "@executable_path/../Frameworks/libusb-0.1.4.dylib" avrdude
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/libusb-compat/lib/libusb-0.1.4.dylib" "@executable_path/../Frameworks/libusb-0.1.4.dylib" bootloadHID
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/libusb-compat/lib/libusb-0.1.4.dylib" "@executable_path/../Frameworks/libusb-0.1.4.dylib" dfu-programmer
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/libusb/lib/libusb-1.0.0.dylib" "@executable_path/../Frameworks/libusb-1.0.0.dylib" dfu-util
install_name_tool -id "@executable_path/../Frameworks/libftdi.1.dylib" libftdi.1.dylib
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/libusb-compat/lib/libusb-0.1.4.dylib" "@executable_path/../Frameworks/libusb-0.1.4.dylib" libftdi.1.dylib
install_name_tool -id "@executable_path/../Frameworks/libusb-0.1.4.dylib" libusb-0.1.4.dylib
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/libusb/lib/libusb-1.0.0.dylib" "@executable_path/../Frameworks/libusb-1.0.0.dylib" libusb-0.1.4.dylib
install_name_tool -id "@executable_path/../Frameworks/libusb-1.0.0.dylib" libusb-1.0.0.dylib
  • Copy to Toolbox Resources folder
  • Double check permissions

mdloader is not in Homebrew core; QMK provides a bottle through https://github.com/qmk/homebrew-qmk. GitHub Actions only has Catalina runners though, so it may or may not work on Mojave systems (and anything older than that is no longer supported as of #275).

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Documentation

Issues Fixed or Closed by This PR

@fauxpark fauxpark merged commit 80a3f4a into qmk:master Aug 1, 2021
@fauxpark fauxpark deleted the macos-update-binaries branch August 1, 2021 06:45
@fauxpark fauxpark mentioned this pull request Dec 7, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants