Skip to content

Commit 1a1ab98

Browse files
fix: mac install
1 parent 2297fb3 commit 1a1ab98

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/tools.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { filesize } from 'filesize';
88
import { app } from 'electron';
99
import { resourceRoot } from './utils.js';
1010
import { broadcast } from './window.js';
11-
import tar from 'tar';
11+
import * as tar from 'tar';
1212
import extractZip from 'extract-zip';
1313

1414
const pipelineAsync = promisify(pipeline)
@@ -144,7 +144,8 @@ async function extractArchive(archivePath, outDir, signal, onProgress) {
144144
console.log(`Extracting ${format}...`);
145145

146146
if (format === '.gz') {
147-
if (onProgress) { onProgress({ progress: -1 }); }
147+
if (onProgress) { onProgress({ progress: -1, status: 'Extracting tools' }); }
148+
148149
await tar.x({
149150
file: archivePath,
150151
cwd: outDir,
@@ -153,7 +154,6 @@ async function extractArchive(archivePath, outDir, signal, onProgress) {
153154
// Destroying the entry stream halts extraction
154155
entry.destroy(new CancelledError())
155156
}
156-
157157
// console.log(`extracting... ${entry.path}`);
158158
// tar doesn't give a percentage, but you can at least show activity
159159
// onProgress?.({ phase: 'extract', file: entry.path })

0 commit comments

Comments
 (0)