mirror of https://github.com/aminya/setup-cpp
fix: use dynamic import for ArchiveHdi
This commit is contained in:
parent
8ce16c2fbc
commit
32bae2b687
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,8 @@
|
|||
import { ArchiveHdi } from "@shockpkg/archive-files/esm/archive/hdi.mjs"
|
||||
import { join } from "path"
|
||||
|
||||
export async function setupDmg(path: string, destDir: string) {
|
||||
const { ArchiveHdi } = await import("@shockpkg/archive-files/esm/archive/hdi.mjs")
|
||||
|
||||
const dmg = new ArchiveHdi(path)
|
||||
await dmg.read(async (entry) => {
|
||||
await entry.extract(join(destDir, entry.path))
|
||||
|
|
Loading…
Reference in New Issue