The newly introduced Icon Composer asset requires Xcode 26 but not all build environments can be expected to have at least macOS 26 and Xcode 26. This establishes a backward compatible fallback for older build environments which will produce a classic .icns like the branded builds do anyway.
Signed-off-by: Iva Horn <[email protected]>
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]>
keep application name and short name the same for the dev and prod build or some migration logic will work differently for each build
Signed-off-by: kaikli <[email protected]>
APPLICATION_SERVER_URL can be either empty or be specified. This commit adds the new CMake option APPLICATION_SERVER_URL_ENFORCE to decide whether to enforce the
URL's unmodified use (like before, default: ON) or to allow modification by the user (new).
By default APPLICATION_SERVER_URL_ENFORCE is set to ON, to no break with the previous implementation's expectations.
If APPLICATION_SERVER_URL is empty, APPLICATION_SERVER_URL_ENFORCE will be ignored by the Account Wizard.
The previous behaviour confused me a bit with branded builds. When the URL was (usually) specified but not forced, it was simply discarded, forcing the user to
manually supply it.
Signed-off-by: Michael Schuster <[email protected]>
The Upgrade Code is a GUID (specified without brackets) for the MSI package to allow Windows Installer identify existing installations.
New build options (default: OFF):
- BUILD_WIN_MSI: Build all MSI scripts and a required helper DLL (to uninstall NSIS legacy installations and remove Explorer Navigation Pane entries)
- BUILD_WIN_TOOLS: Build additional migration tools (currently NCNavRemove, a stand-alone tool for Explorer entries removal)
The helper DLL and migration tools are set to be statically linked and optimized for binary size.
Signed-off-by: Michael Schuster <[email protected]>
Previously side by side installation with ownCloud or other NC custom builds would break the shell integration because the same GUIDs and registry keys were used.
Now we specify our custom GUIDs in NEXTCLOUD.cmake and use CMake to generate a header file and WiX (MSI) include file with these constants.
Note: Using generators like "guidgen" or "uuidgen" ensures that GUIDs are unique, as manual changes are not guaranteed to be.
Signed-off-by: Michael Schuster <[email protected]>
- Default: BUILD_UPDATER = NO
To ease builds for distro packages and contributors (regardless of the specified update URL)
- Enable updater build for Drone CI and AppImage builds
Signed-off-by: Michael Schuster <[email protected]>