Skip to content

Commit

Permalink
fix: use dynamic import for ArchiveHdi
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 17, 2024
1 parent 8ce16c2 commit 32bae2b
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 52 deletions.
2 changes: 2 additions & 0 deletions dist/actions/hdi.a7c9a962.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/actions/hdi.a7c9a962.js.map

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions dist/actions/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/actions/setup-cpp.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/legacy/hdi.37193ff6.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/legacy/hdi.37193ff6.js.map

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions dist/legacy/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/legacy/setup-cpp.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/modern/hdi.9840a557.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/modern/hdi.9840a557.js.map

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions dist/modern/setup-cpp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modern/setup-cpp.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/utils/setup/setupDmg.ts
Original file line number Diff line number Diff line change
@@ -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))
Expand Down

0 comments on commit 32bae2b

Please sign in to comment.