Exclude .DS_Store files from bundle (solved)

Hello there,

is there a way to exclude the hidden .DS_Store files macOS creates from a bundle? I tried without success.

I don’t think we create these since we remove the bundle directory each time.
I think you can do some settings in your OS to control the behavior of that file.

1 Like

Thank you! What is so strange, the files are not present in the folders when I do “Command” + “Shift” + “.”, they only show up in the bundle. I’ll try to change the OS settings like you suggested.
Edit: And so I googled for a solution. From what I understand, the creation of these files can be prevented on network drives but not on local drives. :expressionless:

The finder doesn’t show these files even if you turn on “show hidden files”. But you can see them in the terminal or other file managers.

1 Like

@sergey.lerg You are right, at least in Monterey, .DS_Store files are no longer revealed unless using the terminal or 3rd party file managers. The reason why they are included in the bundle is that I use custom resources. But I’ve meanwhile found a way to delete them before bundling (though they will of course be recreated when the project folder is opened once more).

1 Like