Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
beyondkmp committed Oct 31, 2024
1 parent 6591c42 commit 8a55d4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/asar/unpackDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function detectUnpackedDirs(fileSet: ResolvedFileSet, autoUnpackDirs: Set
for (let i = 0, n = fileSet.files.length; i < n; i++) {
const file = fileSet.files[i]
const stat: FilterStats = metadata.get(file)!
if (!stat.destNodeModulesDirPath) {
if (!stat.destNodeModulesDirPath || autoUnpackDirs.has(stat.destNodeModulesDirPath)) {
continue
}

Expand Down
3 changes: 1 addition & 2 deletions test/src/BuildTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ test.ifLinuxOrDevMac("beforeBuild", () => {
)
})

// https://github.com/electron-userland/electron-builder/issues/1738
test.ifDevOrLinuxCi("win smart unpack", () => {
test("win smart unpack", () => {
// test onNodeModuleFile hook
const nodeModuleFiles: Array<string> = []
let p = ""
Expand Down

0 comments on commit 8a55d4a

Please sign in to comment.