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: