Closed aparcar closed 4 years ago
@aparcar Let's keep findCommonPrefix. It saves some spaces in the JSON and is a very reliable approach. I do not think the upstream JSON by openwrt will be able to (and probably shouldn't) satisfy the specific needs of the selector. But it can surely help, but not replace.
again, make JSON files more like upstream:
findCommonPrefix
and just rely on upstream info.version_commit
(as there is alsoversion_number
url
as link referes to something clickable in the browser while url is more generic, including machine reads%
I changed the replacement to mustache0 which is also usable via Pythonsformat()
function and easier to read. Say a string like %target-info/foobar could mean a variabletarget
ortarget-info
, using {target}-info/foobar makes things easierall these changes where done to be compatile with the asu, meaning a image builder backend that creates images with specificed packages on demand. Example code is added within the top of index.js. The server takes
version
,profile
andpackages
as arguments and returns within a few seconds a freshly build firmware, which is automatically shown in the frontend.Signed-off-by: Paul Spooren mail@aparcar.org