TinyRF icon indicating copy to clipboard operation
TinyRF copied to clipboard

Library not importable to arduino IDE via "Add .ZIP Library..."

Open destroy-data opened this issue 11 months ago • 1 comments

Hi, during attempt to import this library using TinyRF-v1.7.zip I got following error: image Arduino library specification mandates that there should be root folder in zip file. The only change necessary to seamlessly import this library is to put all files in release zip to root folder with library name. I tested it in Arduino IDE 2.1.1, CLI version 0.32.3, but the same should be the case at least from version 1.8.10 when library specification rev.2.2 was introduced. Source: https://arduino.github.io/arduino-cli/0.33/library-specification/#15-library-format-rev-22

I don't know if it's possible to add root folder to release without modifying repo in the same way (quick reasearch doesn't indicate that). If not then removal of installation method via arduino's ' "Add .ZIP Library..." from "How to install the library" section should be good enough. EDIT: "Source code (zip)" and "Source code (tar.gz)" releases have mentioned root directory but "TinyRF-v1.7.zip" and "TinyRF_85-v1.7.zip" don't. Source code releases on the other hand have unnecessary, from Arduino's point of view, VS code files but they don't seem to do any harm.

destroy-data avatar Jul 18 '23 16:07 destroy-data