Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analysis: automatically exclude macOS .DS_Store files #8042

Merged
merged 1 commit into from Oct 26, 2023

Conversation

rokm
Copy link
Member

@rokm rokm commented Oct 26, 2023

On macOS, have Analysis automatically filter .DS_Store files from datas TOC list. These files might be present in package directories as result of user navigating them in the Finder app.

The .DS_Store files are treated as data files, so when placed in a mixed-content directory (i.e., next to binaries), the BUNDLE generator cross-links them from Resources to Frameworks directory tree in the .app bundle. This, however, causes codesign to raise the following error: .DS_Store files cannot be a symlink.

Since we have no reason to be collecting Finder's .DS_Store files in the first place, filter them out at the end of analysis.

On macOS, have Analysis automatically filter `.DS_Store` files from
`datas` TOC list. These files might be present in package directories
as result of user navigating them in the Finder app.

The `.DS_Store` files are treated as data files, so when placed in
a mixed-content directory (i.e., next to binaries), the `BUNDLE`
generator cross-links them from `Resources` to `Frameworks`
directory tree in the .app bundle. This, however, causes `codesign`
to raise the following error: `.DS_Store files cannot be a symlink`.

Since we have no reason to be collecting Finder's `.DS_Store`
files in the first place, filter them out at the end of analysis.
Copy link
Member

@bwoodsend bwoodsend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hate those files.

@rokm rokm merged commit 6bf9321 into pyinstaller:develop Oct 26, 2023
18 checks passed
@rokm rokm deleted the exclude-ds-store-files branch October 26, 2023 22:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants