Skip to content

Commit

Permalink
fix: await tar extract
Browse files Browse the repository at this point in the history
  • Loading branch information
ChingCdesu committed Aug 31, 2023
1 parent 86d9fa8 commit f0830a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/main/coreLoader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion packages/main/utils/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit f0830a5

Please sign in to comment.