epiccurious / jade-diy

Securely custody your bitcoin with Open Source software and generic hardware.
MIT No Attribution
20 stars 2 forks source link

Add support for macOS #4

Closed epiccurious closed 1 year ago

epiccurious commented 1 year ago

Can't use apk to install packages on macOS, so we need another option.

macOS comes with git, python3-pip, and python3-venv by default but not cmake.

Need to either download the Cmake.app package (dmg or tarball) directly from Cmake or install brew+cmake.

The first option probably makes more sense since there's less overhead.

epiccurious commented 1 year ago

Permissions for the Terminal to communicate with USB devices requires the user Allow permission manually by clicking a popup.

No need to chmod /dev/tty* devices, idp.py will automatically detect the device.

epiccurious commented 1 year ago

Made progress on the add-macos-support branch. Almost ready to merge.

Still to-do:

epiccurious commented 1 year ago

Need to try installing cmake into

/Users/${USER}/Applications/

epiccurious commented 1 year ago

Found an option for detecting the USB serial number without throwing an error when not detected.

macos_usb_serial="$(ioreg -p IOUSB -n \"USB Single Serial\" | grep \"USB Serial Number\" | cut -c 34-43)"