Skip to content

Commit

Permalink
Pick manifest.json from root of zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
monkbroc committed Dec 18, 2024
1 parent 4396ffc commit 739097f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmd/flash.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ module.exports = class FlashCommand extends CLICommandBase {

async _loadManifestFromZip(zipPath) {
const dir = await unzip.Open.file(zipPath);
const zipName = path.basename(zipPath, '.zip');
const manifestFile = dir.files.find(file => file.path === path.join(zipName, TACHYON_MANIFEST_FILE));
const manifestFile = dir.files.find(file => file.path === TACHYON_MANIFEST_FILE);
if (!manifestFile) {
throw new Error(`Unable to find ${TACHYON_MANIFEST_FILE}${os.EOL}`);
}
Expand Down

0 comments on commit 739097f

Please sign in to comment.