~aleteoryx/muditaos

c1ec1d8bb02564d2b6f866602772c2a4229884b1 — Adam Dobrowolski 4 years ago 9011744
[EGD-7973] Fixed luts file problem

Luts file was to big to download via api which limit is 1MB
3 files changed, 12 insertions(+), 5 deletions(-)

M products/BellHybrid/assets.json
M products/PurePhone/assets.json
M tools/download_asset2.py
M products/BellHybrid/assets.json => products/BellHybrid/assets.json +3 -2
@@ 56,8 56,9 @@
            "output": "image/assets/fonts/gt_pressura_light_90.mpf"
        },
        {
            "name": "./image/Luts.bin",
            "output": "./image/Luts.bin"
            "name": "image/Luts.bin.tgz",
            "output": "./image/Luts.bin",
            "unpack": true
        }
    ]
}

M products/PurePhone/assets.json => products/PurePhone/assets.json +3 -2
@@ 67,8 67,9 @@
            "output": "image/assets/fonts/gt_pressura_light_90.mpf"
        },
        {
            "name": "./image/Luts.bin",
            "output": "./image/Luts.bin"
            "name": "image/Luts.bin.tgz",
            "output": "./image/Luts.bin",
            "unpack": true
        }
    ]
}

M tools/download_asset2.py => tools/download_asset2.py +6 -1
@@ 170,7 170,12 @@ class GitOps:
                    log.debug("prepend install dir")
                    output = Path(self.install_dir) / output
                output.parent.mkdir(parents=True, exist_ok=True)
                self.copy_file(cached, output)
                if 'unpack' in val:
                    import tarfile
                    with tarfile.open(cached) as tar:
                        tar.extract(output.name, path=output.parent)
                else:
                    self.copy_file(cached, output)
            except HTTP404NotFoundError as ex:
                raise RuntimeError(f'file not found with: {data} err: {ex}')
            except HTTP403ForbiddenError as ex: