InfiniTime.git

commit cfc055c978d98906a8090d092d4416cbfbd2bbce

Author: Jean-François Milants <jf@codingfield.com>

Package resources + a metadata file into a single .zip file.

 src/CMakeLists.txt | 2 
 src/resources/CMakeLists.txt | 29 +++
 src/resources/fonts.json | 62 +++++++
 src/resources/generate-fonts.py | 80 ++++++++++
 src/resources/generate-img.py | 56 +++++++
 src/resources/generate-package.py | 72 +++++++++
 src/resources/images.json | 9 +
 src/resources/images/pine_logo.svg | 253 ++++++++++++++++++++++++++++++++
 src/resources/obsolete_files.json | 6 


diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index db4a8e2aae5faea77b122642dee236fc12085006..f81e7026a5a209b908e8d687453e245fe019469b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1127,6 +1127,8 @@           COMMENT "post build (DFU) steps for ${EXECUTABLE_MCUBOOT_RECOVERYLOADER_FILE_NAME}"
           )
 endif()
 
+add_subdirectory(resources)
+
 
 # FLASH
 if (USE_JLINK)




diff --git a/src/resources/CMakeLists.txt b/src/resources/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..0983aaffe6face66b5a603d218f8a353a3b4d7c0
--- /dev/null
+++ b/src/resources/CMakeLists.txt
@@ -0,0 +1,29 @@
+
+find_program(LV_FONT_CONV "lv_font_conv" NO_CACHE REQUIRED
+    HINTS "${CMAKE_SOURCE_DIR}/node_modules/.bin")
+message(STATUS "Using ${LV_FONT_CONV} to generate font files")
+
+find_program(LV_IMG_CONV "lv_img_conv" NO_CACHE REQUIRED
+    HINTS "${CMAKE_SOURCE_DIR}/node_modules/.bin")
+message(STATUS "Using ${LV_IMG_CONV} to generate font files")
+
+if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
+   # FindPython3 module introduces with CMake 3.12
+   # https://cmake.org/cmake/help/latest/module/FindPython3.html
+   find_package(Python3 REQUIRED)
+else()
+   set(Python3_EXECUTABLE "python")
+endif()
+
+# generate fonts
+add_custom_target(GenerateResources
+    COMMAND "${Python3_EXECUTABLE}" ${CMAKE_CURRENT_SOURCE_DIR}/generate-fonts.py  --lv-font-conv "${LV_FONT_CONV}" ${CMAKE_CURRENT_SOURCE_DIR}/fonts.json
+    COMMAND "${Python3_EXECUTABLE}" ${CMAKE_CURRENT_SOURCE_DIR}/generate-img.py  --lv-img-conv "${LV_IMG_CONV}" ${CMAKE_CURRENT_SOURCE_DIR}/images.json
+    COMMAND "${Python3_EXECUTABLE}" ${CMAKE_CURRENT_SOURCE_DIR}/generate-package.py --config  ${CMAKE_CURRENT_SOURCE_DIR}/fonts.json --config  ${CMAKE_CURRENT_SOURCE_DIR}/images.json --obsolete obsolete_files.json --output infinitime-resources-${pinetime_VERSION_MAJOR}.${pinetime_VERSION_MINOR}.${pinetime_VERSION_PATCH}.zip
+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/fonts.json
+    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/images.json
+    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+
+    COMMENT "Generate fonts and images for resource package"
+)
+




diff --git a/src/resources/fonts/7segment.woff b/src/resources/fonts/7segment.woff
new file mode 100644
index 0000000000000000000000000000000000000000..79ed924933bb24152a246eeaf303c60f6948ebdb
Binary files /dev/null and b/src/resources/fonts/7segment.woff differ




diff --git a/src/resources/fonts/BebasNeue-Regular.ttf b/src/resources/fonts/BebasNeue-Regular.ttf
new file mode 100644
index 0000000000000000000000000000000000000000..76e22b8b060e8e4b5c2a8a0c270b52e0b2f9ba06
Binary files /dev/null and b/src/resources/fonts/BebasNeue-Regular.ttf differ




diff --git a/src/resources/fonts/Teko-Light.ttf b/src/resources/fonts/Teko-Light.ttf
new file mode 100644
index 0000000000000000000000000000000000000000..679f0137adfe659c84add5f0cc2244de883c7d6c
Binary files /dev/null and b/src/resources/fonts/Teko-Light.ttf differ




diff --git a/src/resources/fonts/repetitionscrolling.ttf b/src/resources/fonts/repetitionscrolling.ttf
new file mode 100644
index 0000000000000000000000000000000000000000..dc124164424fc1696f36e4af8319607c1a5150ea
Binary files /dev/null and b/src/resources/fonts/repetitionscrolling.ttf differ




diff --git a/src/resources/fonts.json b/src/resources/fonts.json
new file mode 100644
index 0000000000000000000000000000000000000000..a1545e34a2bc30e22172d107f2681abc0c135dc0
--- /dev/null
+++ b/src/resources/fonts.json
@@ -0,0 +1,62 @@
+{
+   "teko" : {
+      "sources": [
+         {
+            "file": "fonts/Teko-Light.ttf",
+            "symbols": "0123456789:/amp"
+         }
+      ],
+      "bpp": 1,
+      "size": 28,
+      "format": "bin",
+      "target_path": "/fonts/"
+   },
+   "bebas" : {
+      "sources": [
+         {
+            "file": "fonts/BebasNeue-Regular.ttf",
+            "symbols": "0123456789:"
+         }
+      ],
+      "bpp": 1,
+      "size": 120,
+      "format": "bin",
+      "target_path": "/fonts/"
+   },
+   "lv_font_dots_40": {
+      "sources": [
+         {
+            "file": "fonts/repetitionscrolling.ttf",
+            "symbols": "0123456789-MONTUEWEDTHUFRISATSUN WK"
+         }
+      ],
+      "bpp": 1,
+      "size": 40,
+      "format": "bin",
+      "target_path": "/fonts/"
+   },
+   "7segments_40" : {
+      "sources": [
+         {
+            "file": "fonts/7segment.woff",
+            "symbols": "0123456789: -"
+         }
+      ],
+      "bpp": 1,
+      "size": 40,
+      "format": "bin",
+      "target_path": "/fonts"
+   },
+   "7segments_115" : {
+      "sources": [
+         {
+            "file": "fonts/7segment.woff",
+            "symbols": "0123456789: -"
+         }
+      ],
+      "bpp": 1,
+      "size": 115,
+      "format": "bin",
+      "target_path": "/fonts/"
+   }
+}




diff --git a/src/resources/generate-fonts.py b/src/resources/generate-fonts.py
new file mode 100755
index 0000000000000000000000000000000000000000..d6b47ab2021b54fcf45bd7c29d2f54796cad750a
--- /dev/null
+++ b/src/resources/generate-fonts.py
@@ -0,0 +1,80 @@
+#!/usr/bin/env python
+
+import io
+import sys
+import json
+import shutil
+import typing
+import os.path
+import argparse
+import subprocess
+
+class Source(object):
+    def __init__(self, d):
+        self.file = d['file']
+        if not os.path.exists(self.file):
+            self.file = os.path.join(os.path.dirname(sys.argv[0]), self.file)
+        self.range = d.get('range')
+        self.symbols = d.get('symbols')
+
+
+def gen_lvconv_line(lv_font_conv: str, dest: str, size: int, bpp: int, format: str, sources: typing.List[Source], compress:bool=False):
+    if format != "lvgl" and format != "bin":
+        format = "lvgl"
+
+    args = [lv_font_conv, '--size', str(size), '--output', dest, '--bpp', str(bpp), '--format', format]
+    if not compress:
+        args.append('--no-compress')
+    for source in sources:
+        args.extend(['--font', source.file])
+        if source.range:
+            args.extend(['--range', source.range])
+        if source.symbols:
+            args.extend(['--symbols', source.symbols])
+
+    return args
+
+def main():
+    ap = argparse.ArgumentParser(description='auto generate LVGL font files from fonts')
+    ap.add_argument('config', type=str, help='config file to use')
+    ap.add_argument('-f', '--font', type=str, action='append', help='Choose specific fonts to generate (default: all)', default=[])
+    ap.add_argument('--lv-font-conv', type=str, help='Path to "lv_font_conf" executable', default="lv_font_conv")
+    args = ap.parse_args()
+
+    if not shutil.which(args.lv_font_conv):
+        sys.exit(f"Missing lv_font_conv. Make sure it's findable (in PATH) or specify it manually")
+    if not os.path.exists(args.config):
+        sys.exit(f'Error: the config file {args.config} does not exist.')
+    if not os.access(args.config, os.R_OK):
+        sys.exit(f'Error: the config file {args.config} is not accessible (permissions?).')
+    with open(args.config, 'r') as fd:
+        data = json.load(fd)
+
+    fonts_to_run = set(data.keys())
+
+    if args.font:
+        enabled_fonts = set()
+        for font in args.font:
+            enabled_fonts.add(font[:-2] if font.endswith('.c') else font)
+        d = enabled_fonts.difference(fonts_to_run)
+        if d:
+            print(f'Warning: requested font{"s" if len(d)>1 else ""} missing: {" ".join(d)}')
+        fonts_to_run = fonts_to_run.intersection(enabled_fonts)
+
+    for name in fonts_to_run:
+        font = data[name]
+        sources = font.pop('sources')
+        patches = font.pop('patches') if 'patches' in font else  []
+        font['sources'] = [Source(thing) for thing in sources]
+        extension = 'c' if font['format'] != 'bin' else 'bin'
+        font.pop('target_path')
+        line = gen_lvconv_line(args.lv_font_conv, f'{name}.{extension}', **font)
+        subprocess.check_call(line)
+        if patches:
+            for patch in patches:
+                subprocess.check_call(['/usr/bin/env', 'patch', name+'.'+extension, patch])
+
+
+
+if __name__ == '__main__':
+    main()




diff --git a/src/resources/generate-img.py b/src/resources/generate-img.py
new file mode 100755
index 0000000000000000000000000000000000000000..cdbfc030486bab0996001f70808046acc8f0b9a8
--- /dev/null
+++ b/src/resources/generate-img.py
@@ -0,0 +1,56 @@
+#!/usr/bin/env python
+
+import io
+import sys
+import json
+import shutil
+import typing
+import os.path
+import argparse
+import subprocess
+
+def gen_lvconv_line(lv_img_conv: str, dest: str, color_format: str, output_format: str, binary_format: str, sources: str):
+    args = [lv_img_conv, sources, '--force', '--output-file', dest, '--color-format', color_format, '--output-format', output_format, '--binary-format', binary_format]
+
+    return args
+
+def main():
+    ap = argparse.ArgumentParser(description='auto generate LVGL font files from fonts')
+    ap.add_argument('config', type=str, help='config file to use')
+    ap.add_argument('-i', '--image', type=str, action='append', help='Choose specific images to generate (default: all)', default=[])
+    ap.add_argument('--lv-img-conv', type=str, help='Path to "lv_img_conf" executable', default="lv_img_conv")
+    args = ap.parse_args()
+
+    if not shutil.which(args.lv_img_conv):
+        sys.exit(f"Missing lv_img_conv. Make sure it's findable (in PATH) or specify it manually")
+    if not os.path.exists(args.config):
+        sys.exit(f'Error: the config file {args.config} does not exist.')
+    if not os.access(args.config, os.R_OK):
+        sys.exit(f'Error: the config file {args.config} is not accessible (permissions?).')
+    with open(args.config, 'r') as fd:
+        data = json.load(fd)
+
+    images_to_run = set(data.keys())
+
+    if args.image:
+        enabled_images = set()
+        for image in args.image:
+            enabled_images.add(image[:-2] if image.endswith('.c') else image)
+        d = enabled_images.difference(images_to_run)
+        if d:
+            print(f'Warning: requested image{"s" if len(d)>1 else ""} missing: {" ".join(d)}')
+        images_to_run = images_to_run.intersection(enabled_images)
+
+    for name in images_to_run:
+        image = data[name]
+        if not os.path.exists(image['sources']):
+            image['sources'] = os.path.join(os.path.dirname(sys.argv[0]), image['sources'])
+        extension = 'bin'
+        image.pop('target_path')
+        line = gen_lvconv_line(args.lv_img_conv, f'{name}.{extension}', **image)
+        subprocess.check_call(line)
+
+
+
+if __name__ == '__main__':
+    main()




diff --git a/src/resources/generate-package.py b/src/resources/generate-package.py
new file mode 100755
index 0000000000000000000000000000000000000000..ff02d4fe2ba71adc74eb709bb2dbb7615bd3e833
--- /dev/null
+++ b/src/resources/generate-package.py
@@ -0,0 +1,72 @@
+#!/usr/bin/env python
+
+import io
+import sys
+import json
+import shutil
+import typing
+import os.path
+import argparse
+import subprocess
+from zipfile import ZipFile
+
+def main():
+    ap = argparse.ArgumentParser(description='auto generate LVGL font files from fonts')
+    ap.add_argument('--config', '-c', type=str, action='append', help='config file to use')
+    ap.add_argument('--obsolete', type=str, help='List of obsolete files')
+    ap.add_argument('--output', type=str, help='output file name')
+    args = ap.parse_args()
+
+    for config_file in args.config:
+        if not os.path.exists(config_file):
+            sys.exit(f'Error: the config file {config_file} does not exist.')
+        if not os.access(config_file, os.R_OK):
+            sys.exit(f'Error: the config file {config_file} is not accessible (permissions?).')
+
+    if args.obsolete:
+        obsolete_file_path = os.path.join(os.path.dirname(sys.argv[0]), args.obsolete)
+        if not os.path.exists(obsolete_file_path):
+            sys.exit(f'Error: the "obsolete" file {args.obsolete} does not exist.')
+        if not os.access(obsolete_file_path, os.R_OK):
+            sys.exit(f'Error: the "obsolete" file {args.obsolete} is not accessible (permissions?).')
+
+    zf = ZipFile(args.output, mode='w')
+    resource_files = []
+
+    for config_file in args.config:
+        with open(config_file, 'r') as fd:
+            data = json.load(fd)
+
+        resource_names = set(data.keys())
+        for name in resource_names:
+            resource = data[name]
+            resource_files.append({
+                "filename": name+'.bin',
+                "path": resource['target_path'] + name+'.bin'
+            })
+
+            path = name + '.bin'
+            if not os.path.exists(path):
+                path = os.path.join(os.path.dirname(sys.argv[0]), path)
+            zf.write(path)
+
+    if args.obsolete:
+        obsolete_file_path = os.path.join(os.path.dirname(sys.argv[0]), args.obsolete)
+        with open(obsolete_file_path, 'r') as fd:
+            obsolete_data = json.load(fd)
+    else:
+        obsolete_data = {}
+    output = {
+        'resources': resource_files,
+        'obsolete_files': obsolete_data
+    }
+
+
+    with open("resources.json", 'w') as fd:
+        json.dump(output, fd, indent=4)
+
+    zf.write('resources.json')
+    zf.close()
+
+if __name__ == '__main__':
+    main()




diff --git a/src/resources/images/pine_logo.png b/src/resources/images/pine_logo.png
new file mode 100644
index 0000000000000000000000000000000000000000..aa96be4baa37765594dd225a0bef25e2afbf1e47
Binary files /dev/null and b/src/resources/images/pine_logo.png differ




diff --git a/src/resources/images/pine_logo.svg b/src/resources/images/pine_logo.svg
new file mode 100644
index 0000000000000000000000000000000000000000..55f2116933d98075ae4a9936eaac4943e3b95b75
--- /dev/null
+++ b/src/resources/images/pine_logo.svg
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="110.49872"
+   height="150.24246"
+   viewBox="0 0 29.236118 39.751652"
+   version="1.1"
+   id="svg2418"
+   inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)"
+   sodipodi:docname="pine_logo.svg"
+   inkscape:export-filename="/home/diegomiguel/Syncthing/Watchface/pine_logo_new_2_transparent.png"
+   inkscape:export-xdpi="19.807983"
+   inkscape:export-ydpi="19.807983"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview2420"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0"
+     units="px"
+     inkscape:zoom="4.1424077"
+     inkscape:cx="69.886892"
+     inkscape:cy="73.387272"
+     inkscape:window-width="1920"
+     inkscape:window-height="1026"
+     inkscape:window-x="0"
+     inkscape:window-y="24"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="g972"
+     inkscape:snap-page="true" />
+  <defs
+     id="defs2415" />
+  <g
+     inkscape:label="Layer 1"
+     id="layer1"
+     transform="translate(-91.35232,-110.1768)"
+     inkscape:groupmode="layer">
+    <rect
+       style="display:none;opacity:1;fill:#ffffff;fill-opacity:1;stroke:#4d4d4d;stroke-width:0"
+       id="rect2129"
+       width="29.236118"
+       height="39.751652"
+       x="91.352318"
+       y="110.1768"
+       inkscape:label="bg" />
+    <g
+       id="g32004"
+       style="display:none;stroke:none"
+       inkscape:export-filename="/Users/diegomiguel/Syncthing/Watchface/logo_pine.png"
+       inkscape:export-xdpi="19.965168"
+       inkscape:export-ydpi="19.965168"
+       inkscape:label="pine_logo"
+       transform="translate(75.060638,-5.5438717)">
+      <g
+         id="g13016"
+         inkscape:label="pine"
+         style="display:inline;fill:#6f2d00;fill-opacity:1;stroke:none"
+         transform="matrix(1.1631294,0,0,1.1631294,-5.0422885,-22.11978)"
+         inkscape:export-filename="/Users/diegomiguel/Syncthing/Watchface/logo_pine.png"
+         inkscape:export-xdpi="31.276381"
+         inkscape:export-ydpi="31.276381"
+         sodipodi:insensitive="true">
+        <path
+           id="path5716"
+           style="fill:#6f2d00;fill-opacity:1;stroke:none;stroke-width:2.34917;stroke-linecap:round"
+           inkscape:transform-center-x="1.2687941"
+           d="M 116.82422,535.70898 102.4375,542.5 l -14.386719,6.78906 14.386719,6.78906 11,5.19141 v 15.80664 h 3.38672 v -14.20703 -3.93555 -9.64453 z"
+           transform="scale(0.26458333)" />
+        <path
+           style="fill:#6f2d00;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           d="m 18.341872,136.77692 3.331558,7.57837 7.029221,-3.22172 z"
+           id="path5936"
+           sodipodi:nodetypes="cccc" />
+        <path
+           sodipodi:type="star"
+           style="fill:#6f2d00;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-linecap:round"
+           id="path7773"
+           inkscape:flatsided="false"
+           sodipodi:sides="3"
+           sodipodi:cx="116.64632"
+           sodipodi:cy="501.86975"
+           sodipodi:r1="14.699218"
+           sodipodi:r2="7.3496094"
+           sodipodi:arg1="1.0471976"
+           sodipodi:arg2="2.0943951"
+           inkscape:rounded="0"
+           inkscape:randomized="0"
+           transform="matrix(0.39243637,0,0,0.31059853,-17.750778,-19.228227)"
+           inkscape:transform-center-x="1.4421265"
+           d="m 123.99592,514.59965 -11.02441,-6.36495 -11.02441,-6.36495 11.02441,-6.36495 11.02442,-6.36494 0,12.72989 z" />
+        <path
+           sodipodi:type="star"
+           style="fill:#6f2d00;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-linecap:round"
+           id="path7877"
+           inkscape:flatsided="false"
+           sodipodi:sides="3"
+           sodipodi:cx="116.64632"
+           sodipodi:cy="501.86975"
+           sodipodi:r1="14.699218"
+           sodipodi:r2="7.3496094"
+           sodipodi:arg1="1.0471976"
+           sodipodi:arg2="2.0943951"
+           inkscape:rounded="0"
+           inkscape:randomized="0"
+           transform="matrix(-0.3940968,0,0,-0.29190487,69.062729,278.57074)"
+           inkscape:transform-center-x="-1.4482278"
+           inkscape:transform-center-y="3.6892669e-06"
+           d="m 123.99592,514.59965 -11.02441,-6.36495 -11.02441,-6.36495 11.02441,-6.36495 11.02442,-6.36494 0,12.72989 z" />
+        <path
+           sodipodi:type="star"
+           style="fill:#6f2d00;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-linecap:round"
+           id="path7929"
+           inkscape:flatsided="false"
+           sodipodi:sides="3"
+           sodipodi:cx="116.64632"
+           sodipodi:cy="501.86975"
+           sodipodi:r1="14.699218"
+           sodipodi:r2="7.3496094"
+           sodipodi:arg1="1.0471976"
+           sodipodi:arg2="2.0943951"
+           inkscape:rounded="0"
+           inkscape:randomized="0"
+           transform="matrix(0.34926521,0,0,0.27033526,-12.397729,-7.5515591)"
+           inkscape:transform-center-x="1.28348"
+           inkscape:transform-center-y="1.7340579e-06"
+           d="m 123.99592,514.59965 -11.02441,-6.36495 -11.02441,-6.36495 11.02441,-6.36495 11.02442,-6.36494 0,12.72989 z" />
+        <path
+           style="fill:#6f2d00;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           d="m 24.903849,122.34368 -1.378447,3.99721 5.0395,-2.31516 z"
+           id="path7964"
+           sodipodi:nodetypes="cccc" />
+        <path
+           style="fill:#6f2d00;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           d="m 30.909733,118.50827 v 4.63122 l -3.122345,-1.29967 z"
+           id="path11445" />
+      </g>
+      <g
+         id="g13032"
+         transform="matrix(-1.1631294,0,0,1.1631294,66.861771,-22.11978)"
+         style="fill:#de5a00;fill-opacity:1;stroke:none"
+         inkscape:label="pine"
+         inkscape:export-filename="/Users/diegomiguel/Syncthing/Watchface/logo_pine.png"
+         inkscape:export-xdpi="31.276381"
+         inkscape:export-ydpi="31.276381">
+        <path
+           id="path13018"
+           style="fill:#de5a00;fill-opacity:1;stroke:none;stroke-width:2.34917;stroke-linecap:round"
+           inkscape:transform-center-x="1.2687941"
+           d="M 116.82422,535.70898 102.4375,542.5 l -14.386719,6.78906 14.386719,6.78906 11,5.19141 v 15.80664 h 3.38672 v -14.20703 -3.93555 -9.64453 z"
+           transform="scale(0.26458333)" />
+        <path
+           style="fill:#de5a00;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           d="m 18.341872,136.77692 3.331558,7.57837 7.029221,-3.22172 z"
+           id="path13020"
+           sodipodi:nodetypes="cccc" />
+        <path
+           sodipodi:type="star"
+           style="fill:#de5a00;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-linecap:round"
+           id="path13022"
+           inkscape:flatsided="false"
+           sodipodi:sides="3"
+           sodipodi:cx="116.64632"
+           sodipodi:cy="501.86975"
+           sodipodi:r1="14.699218"
+           sodipodi:r2="7.3496094"
+           sodipodi:arg1="1.0471976"
+           sodipodi:arg2="2.0943951"
+           inkscape:rounded="0"
+           inkscape:randomized="0"
+           transform="matrix(0.39243637,0,0,0.31059853,-17.750778,-19.228227)"
+           inkscape:transform-center-x="1.4421265"
+           d="m 123.99592,514.59965 -11.02441,-6.36495 -11.02441,-6.36495 11.02441,-6.36495 11.02442,-6.36494 0,12.72989 z" />
+        <path
+           sodipodi:type="star"
+           style="fill:#de5a00;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-linecap:round"
+           id="path13024"
+           inkscape:flatsided="false"
+           sodipodi:sides="3"
+           sodipodi:cx="116.64632"
+           sodipodi:cy="501.86975"
+           sodipodi:r1="14.699218"
+           sodipodi:r2="7.3496094"
+           sodipodi:arg1="1.0471976"
+           sodipodi:arg2="2.0943951"
+           inkscape:rounded="0"
+           inkscape:randomized="0"
+           transform="matrix(-0.3940968,0,0,-0.29190487,69.062729,278.57074)"
+           inkscape:transform-center-x="-1.4482278"
+           inkscape:transform-center-y="3.6892669e-06"
+           d="m 123.99592,514.59965 -11.02441,-6.36495 -11.02441,-6.36495 11.02441,-6.36495 11.02442,-6.36494 0,12.72989 z" />
+        <path
+           sodipodi:type="star"
+           style="fill:#de5a00;fill-opacity:1;stroke:none;stroke-width:1.51181;stroke-linecap:round"
+           id="path13026"
+           inkscape:flatsided="false"
+           sodipodi:sides="3"
+           sodipodi:cx="116.64632"
+           sodipodi:cy="501.86975"
+           sodipodi:r1="14.699218"
+           sodipodi:r2="7.3496094"
+           sodipodi:arg1="1.0471976"
+           sodipodi:arg2="2.0943951"
+           inkscape:rounded="0"
+           inkscape:randomized="0"
+           transform="matrix(0.34926521,0,0,0.27033526,-12.397729,-7.5515591)"
+           inkscape:transform-center-x="1.28348"
+           inkscape:transform-center-y="1.7340579e-06"
+           d="m 123.99592,514.59965 -11.02441,-6.36495 -11.02441,-6.36495 11.02441,-6.36495 11.02442,-6.36494 0,12.72989 z" />
+        <path
+           style="fill:#de5a00;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           d="m 24.903849,122.34368 -1.378447,3.99721 5.0395,-2.31516 z"
+           id="path13028"
+           sodipodi:nodetypes="cccc" />
+        <path
+           style="fill:#de5a00;fill-opacity:1;stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           d="m 30.909733,118.50827 v 4.63122 l -3.122345,-1.29967 z"
+           id="path13030" />
+      </g>
+    </g>
+    <g
+       id="g972"
+       style="display:inline;stroke:none"
+       inkscape:export-filename="/Users/diegomiguel/Syncthing/Watchface/logo_pine.png"
+       inkscape:export-xdpi="19.965168"
+       inkscape:export-ydpi="19.965168"
+       inkscape:label="pine_logo"
+       transform="translate(75.060638,-5.5438717)">
+      <path
+         id="path952"
+         style="fill:#0f0f0f;fill-opacity:1;stroke:none;stroke-width:0.307744px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="m 30.909731,115.72067 v 5.38671 l -3.631692,-1.51168 z m -6.985621,4.46108 -1.603312,4.64927 5.861591,-2.69283 z m 6.98562,10.72311 -4.478564,-2.00136 -4.478563,-2.00136 4.478563,-2.00136 4.478568,-2.00137 v 4.00273 z m -12.461069,-3.7293 5.05343,2.16104 5.053431,2.16105 -5.053431,2.16105 -5.053434,2.16104 v -4.32209 z m 12.461067,14.24725 -5.032139,-2.29945 -5.032139,-2.29944 5.032139,-2.29943 5.032144,-2.29945 v 4.59888 z m -14.618046,-4.45333 3.875033,8.81462 8.175894,-3.74728 z m 14.618058,5.77232 -4.427436,2.0899 -4.427436,2.08929 4.427436,2.0893 3.385191,1.59762 v 4.86441 h 1.042245 v -4.37214 -1.21114 -2.96805 z"
+         inkscape:label="left" />
+      <path
+         id="path968"
+         style="fill:#575757;fill-opacity:1;stroke:none;stroke-width:0.307744px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="m 30.909752,115.72067 v 5.38671 l 3.631691,-1.51168 z m 6.98562,4.46108 1.603312,4.64927 -5.86159,-2.69283 z m -6.985619,10.72311 4.478564,-2.00136 4.478563,-2.00136 -4.478563,-2.00136 -4.478568,-2.00136 v 4.00272 z m 12.461067,-3.72931 -5.05343,2.16105 -5.05343,2.16105 5.05343,2.16104 5.053435,2.16105 v -4.32209 z m -12.461065,14.24726 5.032139,-2.29945 5.032139,-2.29944 -5.032139,-2.29944 -5.032144,-2.29944 v 4.59888 z m 14.618045,-4.45333 -3.875033,8.81462 -8.175893,-3.74728 z m -14.618058,5.77231 4.427436,2.0899 4.427436,2.0893 -4.427436,2.0893 -3.385191,1.59763 v 4.8644 h -1.042245 v -4.37213 -1.21115 -2.96805 z"
+         inkscape:label="right" />
+    </g>
+  </g>
+</svg>




diff --git a/src/resources/images.json b/src/resources/images.json
new file mode 100644
index 0000000000000000000000000000000000000000..764747ca17698fccb1dea3c3d0736880ec4260e3
--- /dev/null
+++ b/src/resources/images.json
@@ -0,0 +1,9 @@
+{
+   "pine_small" : {
+      "sources": "images/pine_logo.png",
+      "color_format": "CF_TRUE_COLOR",
+      "output_format": "bin",
+      "binary_format": "ARGB8565_RBSWAP",
+      "target_path": "/images/"
+   }
+}




diff --git a/src/resources/obsolete_files.json b/src/resources/obsolete_files.json
new file mode 100644
index 0000000000000000000000000000000000000000..6109ace7017efe54a50b65dcc337146697775fb9
--- /dev/null
+++ b/src/resources/obsolete_files.json
@@ -0,0 +1,6 @@
+[
+  {
+    "path": "/example-of-obsolete-file.bin",
+    "since": "1.11.0"
+  }
+]
\ No newline at end of file