Skip to content

Commit

Permalink
Fixed content exclusion when extracting DMG archives of IntelliJ Plat…
Browse files Browse the repository at this point in the history
…form on macOS
  • Loading branch information
hsz committed Jun 10, 2024
1 parent 7d6012d commit aec0aa9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Redundant whitespace when parsing plugin dependency IDs
- Plugin Verifier: introduce partial configuration for resolving IntelliJ Platform dependencies with same coordinates but different versions
- Customizing the `sandboxDirectory` and `sandboxSuffix` when configuring `SandboxAware` tasks
- Fixed content exclusion when extracting DMG archives of IntelliJ Platform on macOS

## [2.0.0-beta5] - 2024-05-30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,12 @@ abstract class ExtractorTransformer @Inject constructor(
.from(tempDirectory)
.matching {
exclude {
// DMG archives contain a symbolic link to Applications directory and some `.background` meta directory we have to exclude.
it.file.run { name == ".background" || (name == "Applications" && Files.isSymbolicLink(toPath())) }
// DMG archives contain a symbolic link to Applications directory and dot-directories located in the root of the archive,
// such as `.background` meta-directory, we have to exclude.
it.file.run {
(name == "Applications" && Files.isSymbolicLink(toPath()))
|| it.relativePath.startsWith('.')
}
}
}
}
Expand Down

0 comments on commit aec0aa9

Please sign in to comment.