Palatis / Arduino-Lufa

LUFA (Lightweight USB For AVRs) on the Arduino!
MIT License
100 stars 26 forks source link

Install and use LUFA directly through Arduino Board Manager #23

Closed CrazyRedMachine closed 1 year ago

CrazyRedMachine commented 3 years ago

This is the work refered to in issue https://github.com/Palatis/Arduino-Lufa/issues/22

With this it is now possible to install LUFA directly through the Arduino IDE board manager.

In order to do so, we need to create releases from the github menu each time we want to push an update, and then edit the package_arduino-lufa_index.json to add a new entry with the new filename, url, size and hash each time we make a new release.

Important note

when this PR is merged, we have to create an 1.0 release for it to work (package index.json is already referencing an hypothetical 1.0 release, with current contents hash and size). If no changes to the included files are needed, it will work as is, else we also need to update the index.json to reflect the new hash and filesize

Additional Comments

iFreilicht commented 3 years ago

Hey @CrazyRedMachine! I know it’s been a while, but I finally became a contributor to this repo, so I’ll be able to merge your PR!

Did you change anything since our discussion in #22?

CrazyRedMachine commented 3 years ago

hi, this is great news :) nothing has changed on my end, this pr can be merged as is, but you'll still need to prepare a release and edit the index.json as the included hash is not correct iirc

Palatis commented 1 year ago

i dunno, recent Arduino IDE and framework has been so different since I work on this little project. I'll just merge this, and if it doesn't work on newer framework just go the old fashion way.

CrazyRedMachine commented 1 year ago

thank you very much for the merge :) unfortunately you cannot just merge as is, you have to create a new release as well.. i prepared the package.json as if it had a 1.0 release but i don't have the rights to make a release on your repo.

you should make a 1.0 release then double check that the url/filename/size/hash match in https://github.com/Palatis/Arduino-Lufa/blob/e5b3f2b0555a55479534db02b492a0a218a17459/package_arduino-lufa_index.json#L16