Status: released
Last mod.: 2023-03-05
Example input: Configurations/Sample.lua
Example output: Results/library.properties
Official format specification: arduino.github.io/arduino-cli/0.36/library-specification/.
- Linux
- Lua 5.4 (should work with 5.3 too)
-
Clone
-
lua Run.luaWill print usage help.
-
lua Run.lua Configurations/Sample.luaWill generate "library.properties" and place it in "Results/" directory:
ArduinoLibGenerator --( Created file "Results/library.properties". )--
There is not much joy in writing tool that converts "A" to "B". Joy is when it can convert "B" back to "A".
So I've implemented parser of "library.properties" to Lua table. And used table serializer I wrote like 8 years ago...
lua Run.lua --decompile Results/library.properties
ArduinoLibGenerator --(
Created file "Results/library.configuration.lua".
)--
Not the same data as original but will compile back to the same "library.properties".
Now you can load descriptions from existing ArduinoIDE libraries, process them and write back if you wish. Find the most quoted author, the longest description, the most popular version or just skim for emails from those who were naive enough to publish them.
Happy hacking!
Tinkering with Arduino Uno yielded to programming in C++ and growing set of personal libraries.
Now I'm coming to point when I want to release some of my projects.
And so I need to release libraries these projects are using.
ArduinoIDE since v1.5 wants to see "library.properties" file.
Editing "key=value" strings is not what I'm wanting to do.
So I've created tool to generate "library.properties" from structured description in Lua table.
-- Martin, 2024-02-11/2024-03-05