mwarning / openwrt-firmware-selector

OpenWrt firmware selector. With custom image builder support.
https://mwarning.github.io/openwrt-firmware-selector/www/
Creative Commons Zero v1.0 Universal
39 stars 22 forks source link

add dynamic image creation code & json refactor #5

Closed aparcar closed 4 years ago

aparcar commented 4 years ago

again, make JSON files more like upstream:

all 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 and packages 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

mwarning commented 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.