Skip to content

Commit caf72b3

Browse files
committed
maybe
Signed-off-by: Jens Reinecke <[email protected]>
1 parent 7241408 commit caf72b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/download-tools.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,14 @@ async function downloadGDB(target: VsceTarget, dest: string, options?: ToolOptio
270270
const fileType = await fileTypeFromFile(downloadFilePath);
271271
console.debug(`File type: MIME-type ${fileType?.mime}, Extension ${fileType?.ext} ...`);
272272

273-
if (fileType?.mime === 'application/zip' || fileType?.ext === 'zip') {
273+
//if (fileType?.mime === 'application/zip' || fileType?.ext === 'zip') {
274274
console.debug(`extractZip: dir ${destPath} ...`);
275275
await extractZip(downloadFilePath, { dir: destPath, onEntry(entry, _zipfile) {
276276
console.debug(`\tentry ${entry.fileName} ...`);
277277
}, }).catch(error => {
278278
throw new Error(`Failed to extract ${url}`, { cause: error });
279279
});
280+
/*
280281
} else {
281282
console.debug(`fastExtract: downld ${downloadFilePath}, dest ${destPath} ...`);
282283
await fastExtract(downloadFilePathBase, destPath, { strip: 1, type: fileType?.ext },
@@ -285,6 +286,7 @@ async function downloadGDB(target: VsceTarget, dest: string, options?: ToolOptio
285286
throw new Error(`Failed to extract ${downloadFilePath}`, { cause: error });
286287
});
287288
}
289+
*/
288290

289291

290292
// Remove doc directory as it contains duplicate files (names differ only in case)

0 commit comments

Comments
 (0)