Skip to content

Ignore macOS Finder metadata (.DS_Store, ._*) when verifying the addon tree #12

Todo

Description

@piaoboo

Summary

Package.inspect_tree() rejects any file in addons/orca that is not listed in update_manifest.json, with the single exception of .import sidecars for manifest-listed assets. On macOS this makes the updater permanently unusable after a directory has been viewed in Finder, because the OS writes .DS_Store into it automatically.

The guard itself is doing the right thing — it should not overwrite unknown files. This is a narrow request to extend the existing exemption to files the operating system creates and that can never hold user content.

Reproduction (macOS)

  1. Install Orca 1.9.0 into a project.
  2. Open addons/orca in Finder once (or copy the folder with Finder).
  3. Wait for a newer release, open the Orca panel and press the update button.

Result:

The addon contains unrecognized or locally added files. Install manually to preserve them.

The offending entry is addons/orca/.DS_Store. Every manifest-listed file still matches its sha256 — nothing has been modified, only one Finder metadata file was added. Removing .DS_Store makes the update proceed normally.

Why this is worth handling

  • .DS_Store is written by macOS itself whenever a folder is displayed in Finder; the user cannot reliably avoid it.
  • It never contains user data or local modifications — deleting it is lossless, which is exactly the property that justifies the existing .import exemption.
  • The error message tells the user to "install manually to preserve them", which is misleading here: there is nothing to preserve.

Suggested change

In the file-walk inside inspect_tree(), treat these as tolerated entries, the same way .import is handled:

  • .DS_Store (Desktop Services store)
  • ._* (AppleDouble resource forks, produced when copying to non-HFS volumes)
  • .localized (Finder folder localization marker, harmless)

Only the file-name check needs to change; no manifest or hashing change is required. If you prefer to keep the strictness, an alternative is to accept these entries but surface them in the panel ("ignored 1 system file") so the user knows the tree is not byte-identical.

Environment

  • Orca 1.9.0 → 1.10.0
  • macOS (Darwin 25.6.0)
  • Godot 4.8.beta5.official.a661dfdbc

Activity

  1. cold-atom commented on Nov 27, 2026

    @cold-atom
    Owner

    once again thank you @piaoboo . The current tree verifier only tolerates generated .import sidecars, so Finder metadata can block an update even when every manifest-listed addon file still matches. I agree that we should handle recognized macOS metadata without weakening the protection for local modifications, unknown files, or symlinks. The exemption should stay narrow and bounded; AppleDouble ._* files deserve a little care because they can carry resource forks and extended attributes.

    I will be tackling #13 first because it can leave the dock unusable. If you're interested in contributing a focused PR for this issue, you'd be very welcome, having your macOS environment for verification would be especially helpful. Install/rollback coverage and checks that unrelated files and symlinks still block updates would be useful. No pressure if you'd prefer just to help test a fix, and thanks again for investigating both issues.

  2. added theissue type on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions