The Icon Composer (.icon) flow introduced in 2517359d05 became the only
macOS app-icon path for every build, including branded customer builds
where shipping an Icon Composer bundle alongside their themed SVGs isn't
practical.
Gate the Icon Composer pipeline on `APPLICATION_NAME == "Nextcloud"` or
`NEXTCLOUD_DEV` (matching the spirit of the pre-2517359d05 check in
NEXTCLOUD.cmake) and restore the historical Inkscape + ECM rasterisation
path for any other APPLICATION_NAME. Both paths produce a usable bundle
icon:
* Default (Nextcloud / NextcloudDev): compile theme/colored/AppIcon.icon
via `actool` and reference it via `CFBundleIconFile = AppIcon`
+ `CFBundleIconName = AppIcon`.
* Branded: rasterise `${theme_dir}/colored/${APPLICATION_ICON_NAME}-icon.svg`
with Inkscape/rsvg-convert and bundle the result via
`ecm_add_app_icon` to `${APPLICATION_ICON_NAME}.icns`. The Info.plist
drops `CFBundleIconName` for this path.
The Finder sidebar icon mechanism is intentionally not reinstated — even
when ECM ran with `SIDEBAR_ICONS` previously, Finder didn't render the
template variants for arbitrary favorited folders, so neither path
bundles a sidebar variant now.
`MacOSXBundleInfo.plist.in` switches to `@MACOSX_BUNDLE_ICON_FILE@` plus a
`@MACOSX_BUNDLE_ICON_NAME_BLOCK@` placeholder so a single template serves
both pipelines. `NextcloudCPack.cmake` and
`shell_integration/MacOSX/CMakeLists.txt` follow the same gate to point
at the right `.icns`.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Iva Horn <[email protected]>