diff --git a/packages/main/coreLoader/index.ts b/packages/main/coreLoader/index.ts index ac815782..073fe43a 100644 --- a/packages/main/coreLoader/index.ts +++ b/packages/main/coreLoader/index.ts @@ -10,7 +10,7 @@ import callbackHandle from './callback' import { getAppBaseDir } from '@main/utils/path' import type { TouchMode } from '@type/misc' import { InstanceOptionKey } from '@type/misc' -import { extractFile, unzipFile } from '@main/utils/extract' +import { extractFile } from '@main/utils/extract' import type { ResourceType } from '@type/game' const storage = new Storage() diff --git a/packages/main/utils/extract.ts b/packages/main/utils/extract.ts index 9c18a2a1..6cfb5790 100644 --- a/packages/main/utils/extract.ts +++ b/packages/main/utils/extract.ts @@ -82,7 +82,7 @@ export async function unzipFile(src: string, dest: string) { } export async function untarFile(src: string, dest: string) { - tar.x({ + await tar.x({ file: src, cwd: dest, })