frontend: source: Extract firmware from factory images

This commit is contained in:
Danny Lin 2021-12-18 02:52:26 -08:00
parent c1b851d0d1
commit 204ecec1cd

View file

@ -126,7 +126,7 @@ class SourceResolver {
// Extract nested images zip // Extract nested images zip
this.spinner.text = `extracting factory images: ${file}` this.spinner.text = `extracting factory images: ${file}`
let imagesFile = `${imagesTmp.dir}/${imagesEntry}` let imagesFile = `${imagesTmp.dir}/${imagesEntry}`
await run(`unzip -d ${imagesTmp.dir} ${file} ${imagesEntry}`) await run(`unzip -d ${imagesTmp.dir} ${file}`)
return await this.wrapLeafFile(imagesFile, file) return await this.wrapLeafFile(imagesFile, file)
} else if (files.find(f => f == 'payload.bin') != undefined) { } else if (files.find(f => f == 'payload.bin') != undefined) {
// OTA package // OTA package