From 1c8582388a5cbaa2b82b85e22f0ce6c3eb6a32a8 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Tue, 8 Oct 2024 08:33:16 +0200 Subject: [PATCH] use logo arrays --- build_manifest_all.py | 10 ++++++--- manifest_all_v1.1.0.json | 44 ++++++++++++++++------------------------ 2 files changed, 25 insertions(+), 29 deletions(-) diff --git a/build_manifest_all.py b/build_manifest_all.py index cc1b1e5..623ab7d 100755 --- a/build_manifest_all.py +++ b/build_manifest_all.py @@ -45,7 +45,10 @@ "description": {"type": "string"}, "shortDescription": {"type": "string"}, "urlToClone": {"type": "string"}, - "logo": {"type": "string"}, + "logo": { + "type": "array", + "items": {"type": "string"} + }, "branches": { "type": "array", "items": {"type": "string"} @@ -139,11 +142,12 @@ def fetch_json(url): print("Validating the concatenated JSON") valid = validate_json(all_json_data, schema_whole) +filename = "manifest_all_v1.1.0.json" if valid: # Save the concatenated JSON data to a new file - with open('manifest_all_v1.1.0.json', 'w') as outfile: + with open(filename, 'w') as outfile: json.dump(all_json_data, outfile, indent=4) - print("All JSON data has been concatenated and saved to 'manifest_all.json'.") + print(f"All JSON data has been concatenated and saved to {filename}.") else: print("Error: the concatenated JSON is invalid") diff --git a/manifest_all_v1.1.0.json b/manifest_all_v1.1.0.json index 1567ab1..b9ee53c 100644 --- a/manifest_all_v1.1.0.json +++ b/manifest_all_v1.1.0.json @@ -30,7 +30,9 @@ "description": "ESP32-S3-LCD-EV-Board is a development board for evaluating and verifying ESP32-S3 screen interactive applications. It has the functions of touch screen interaction and voice interaction.", "shortDescription": "Powerful ESP32-S3 based development board supporting various displays.", "urlToClone": "https://github.com/lvgl/lv_port_espressif_esp32-s3-lcd-ev-board", - "logo": "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/espressif/logo.svg", + "logo": [ + "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/espressif/logo.svg" + ], "branches": [ "release/v9.2" ], @@ -103,7 +105,9 @@ "description": "Example project to use LVGL on top of Linux graphics stack. Currently supported backends are either legacy framebuffer (fbdev), modern DRM/KMS, or SDL2.", "shortDescription": "CMake project for Linux devices supporting various display drivers.", "urlToClone": "https://github.com/lvgl/lv_port_linux", - "logo": "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/linux/logo.svg", + "logo": [ + "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/linux/logo.svg" + ], "branches": [ "release/v9.2" ], @@ -133,24 +137,6 @@ } ] }, - { - "type": "dropdown", - "label": "Driver", - "options": [ - { - "name": "Frame buffer device", - "value": "0" - }, - { - "name": "DRM", - "value": "1" - }, - { - "name": "SDL", - "value": "2" - } - ] - }, { "type": "dropdown", "label": "Show performance monitor", @@ -194,19 +180,19 @@ "actions": [ { "ifValue": "0", - "toReplace": "#define LV_USE_LINUX_FBDEV \\d+", + "toReplace": "#define LV_USE_LINUX_FBDEV +\\d+", "newContent": "#define LV_USE_LINUX_FBDEV 1", "filePath": "lv_conf.h" }, { "ifValue": "1", - "toReplace": "#define LV_USE_LINUX_DRM \\d+", + "toReplace": "#define LV_USE_LINUX_DRM +\\d+", "newContent": "#define LV_USE_LINUX_DRM 1", "filePath": "lv_conf.h" }, { "ifValue": "2", - "toReplace": "#define LV_USE_SDL \\d+", + "toReplace": "#define LV_USE_SDL +\\d+", "newContent": "#define LV_USE_SDL 1", "filePath": "lv_conf.h" } @@ -229,7 +215,9 @@ "description": "LVGL is written mainly for microcontrollers and embedded systems however you can run the library on your PC as well without any embedded hardware. The code written on PC can be simply copied when your are using an embedded system. The PC simulator is cross platform. Windows, Linux and OSX are supported, however on Windows it's easier to get started with a another simulator project. This project uses Eclipse CDT (as an IDE) and SDL =a low level driver library to open a window, and handle mouse, keyboard etc.)", "shortDescription": "Eclipse-based project to run LVGL on PC.", "urlToClone": "https://github.com/lvgl/lv_port_pc_eclipse", - "logo": "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/eclipse/logo.svg", + "logo": [ + "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/eclipse/logo.svg" + ], "branches": [ "release/v9.2" ], @@ -298,7 +286,9 @@ "description": "LVGL is written mainly for microcontrollers and embedded systems, however you can run the library on your PC as well without any embedded hardware. The code written on PC can be simply copied when you are using an embedded system. The project can use SDL but it can be easily replaced by any other built-in LVGL drivers.", "shortDescription": "VSCode-based project to run LVGL on PC.", "urlToClone": "https://github.com/lvgl/lv_port_pc_vscode", - "logo": "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/vscode/logo.svg", + "logo": [ + "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/vscode/logo.svg" + ], "branches": [ "release/v9.2" ], @@ -384,7 +374,9 @@ "description": "The EK-RA8D1 evaluation kit enables users to effortlessly evaluate the features of the RA8D1 MCU Group and develop embedded systems applications using Renesas\u2019 Flexible Software Package (FSP) and e2 studio IDE. Utilize rich on-board features along with your choice of popular ecosystem add-ons to bring your big ideas to life. The MCU has a Cortex-M85 core which utilizes the Helium (SIMD) instruction set of Arm. Besides that the chip is equipped with a GPU (called DAVE2D) to off load the MCU.", "shortDescription": "Cortex-M85 based 480 MHz MCU driving a 480x854 display.", "urlToClone": "https://github.com/lvgl/lv_port_renesas_ek-ra8d1_gcc", - "logo": "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/renesas/logo.svg", + "logo": [ + "https://raw.githubusercontent.com/lvgl/project-creator/master/meta/images/renesas/logo.svg" + ], "branches": [ "release/v9.2" ],