Skip to content

Commit

Permalink
use relative path glob pattern for all files
Browse files Browse the repository at this point in the history
  • Loading branch information
beyondkmp committed Jan 11, 2025
1 parent 492a2d9 commit 7be5628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-builder-lib/src/asar/asarUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class AsarPackager {
const matchUnpacker = (file: string, dest: string, stat: fs.Stats, tmpUnpackedPaths: Set<string>) => {
if (this.config.unpackPattern?.(file, stat)) {
log.debug({ file }, "unpacking")
tmpUnpackedPaths.add(dest)
tmpUnpackedPaths.add(`**${path.sep}${dest}`)
return
}
}
Expand Down Expand Up @@ -154,7 +154,7 @@ export class AsarPackager {
const relative = path.relative(this.config.defaultDestination, getDestinationPath(file, fileSet))
const destination = path.resolve(this.rootForAppFilesWithoutAsar, relative)

matchUnpacker(file, destination, stat, tmpUnpackedPaths)
matchUnpacker(file, relative, stat, tmpUnpackedPaths)
taskManager.addTask(writeFileOrProcessSymlink({ transformedData, file, destination, stat, fileSet }))

if (taskManager.tasks.length > MAX_FILE_REQUESTS) {
Expand Down

0 comments on commit 7be5628

Please sign in to comment.