Closed phillipjohnston closed 2 years ago
This will be very nice to have- make using the BL much easier :)
Working example for a board manager.
For testing it in Arduino IDE the raw
version should be used- https://raw.githubusercontent.com/hagaigold/athena-bootloader/develop/package_AB_index.json
Some thoughts:
raw
link.
(https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls)Thank you again for your help with this @hagaigold. I have switched the main JSON over to our repository, and it will be auto-generated for each release.
Also updated README instructions for using the board manager.
and it will be auto-generated for each release.
Currently, the BM file will have only the last release which I think will work but create a "weird" user experience with the board manager utility in the IDE:
A thought: don't see the need for the nightly build to automatically increase the version. many projects increase the version manually thru a JSON file (or header), then the CI does its thing when the version was bumped.
Assuming the board manager JSON file will have all the released versions, we might prefer this approach.
Another option is that the JSON will have just Releases
without Pre-release
.
Note: also relevant to #90.
@hagaigold:
Currently, the BM file will have only the last release which I think will work but create a "weird" user experience with the board manager utility in the IDE:
I'll reorganize it to support multiple versions, I agree that is desired.
A thought: don't see the need for the nightly build to automatically increase the version. many projects increase the version manually thru a JSON file (or header), then the CI does its thing when the version was bumped.
I'm not sure I see the reason to regress to a manual process. If there are concerns, I would rather insert another branch (e.g., "develop") instead of reverting to a manual update. In "normal" flow, this project does not see a large amount of updates. Yesterday's build server hackery being quite the exception :).
Is there a reason I'm missing that it would be superior to manually manage it?
edit: One reason I can think of would be that non-code related items, such as README changes or infrastructure changes, should not generate a new release version. In that case, I would still fall back on having the nightly build be manual instead of automatic, but that also increases the friction of releases being made after PRs are merged - I'd have to remember to go and click the button, which is quite easy to do. I could also check whether or not changes have been made to src/
or libraries
.
Filed #97
Is there a reason I'm missing that it would be superior to manually manage it?
moving to #98
For adding board file to athena:
Instructions¶ • Start Arduino and open Preferences window. • Enter https://arduino.esp8266.com/stable/package_esp8266com_index.json into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas. • Open Boards Manager from Tools > Board menu and find esp8266 platform. • Select the version you need from a drop-down box. • Click install button. • Don’t forget to select your ESP8266 board from Tools > Board menu after installation. For more information on the Arduino Board Manager, see: • https://www.arduino.cc/en/guide/cores
Example: