You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9e3582d
Browse filesBrowse the repository at this point in the historyBrowse files
Preserve customized Xcode asset catalogs across regeneration
Folder-reference assets (Assets.xcassets on macOS, mediaAssets on iOS/
tvOS/visionOS/catOS) were being copied with a bare !exists guard. That
blocked a template bugfix from reaching projects that had never been
touched, and if the guard were loosened to always copy we'd wipe out
every user's own icons and media.
Factor the folder-copy into copyTemplateFolderIfUnchanged and make the
decision three-state:
CopyFresh destination missing, copy the template in.
CopyRefresh destination exists and is byte-identical to the template
(relative paths match, each file's bytes match, dotfiles
ignored) -- refresh in place so template bugfixes reach
untouched projects.
KeepCustom destination differs in any way (file added, removed, or
edited) -- leave the whole catalog alone, all-or-nothing,
never merge.
No sentinel files, no mtime checks, no hash manifests -- the compare is
strictly template-on-disk vs project-on-disk at regen time, so the
heuristic stays invisible to users and can't be committed by accident.
Apply the helper to both the macOS Assets.xcassets copy (new) and the
iOS/tvOS/visionOS mediaAssets copy (switched over). The macOS copy
no-ops cleanly when the template ships no Assets.xcassets, so this is
safe to land ahead of the openFrameworks template change.
GUI 0.125.0, CLI 0.130.0.
0 commit comments