Support compressed images in balena local flash

Change-type: minor
This commit is contained in:
Alexis Svinartchouk 2019-01-16 11:48:58 +01:00
parent 7b7d00c642
commit c63569d592

View File

@ -93,10 +93,11 @@ export const flash: CommandDefinition<
process.exit(0);
}
const source = new sourceDestination.File(
const file = new sourceDestination.File(
params.image,
sourceDestination.File.OpenFlags.Read,
);
const source = await file.getInnerSource();
const progressBars: { [key: string]: any } = {
flashing: new visuals.Progress('Flashing'),