A "// QML_WINDOW_CLOSE_EXCEPTION" comment can be added to create an exception for the given window component
Signed-off-by: Claudio Cambra <[email protected]>
Repeating the opening command's arguments in closing commands is a legacy CMake requirement dropped since CMake 3.13. Since the project requires CMake at least 3.16, the arguments are unnecessary.
Signed-off-by: artyom-fedosov <[email protected]>
Add CFBundleName and CFBundleDisplayName to MacOSXBundleInfo.plist.in to prevent Sparkle's SUHost name resolving from falling back to file paths and stripping the suffixes
Signed-off-by: Claudio Cambra <[email protected]>
The Qt Multimedia framework was pulled into the desktop client solely to
play the call-notification ringtone in a loop via QML's SoundEffect. This
introduces NotificationSoundPlayer, a thin in-tree C++ class that wraps
the OS-native audio APIs (AVAudioPlayer on macOS, XAudio2 on Windows,
libcanberra on Linux) and exposes the same minimal QML API the dialog
needs. Removing the import lets macdeployqt drop the QtMultimedia
framework and QML plugin from the bundle and unblocks shrinking the
Windows installer.
The dispatcher resolves qrc:/file:/plain-path sources, extracts QRC
contents to the cache with an atomic-rename + QTemporaryFile fallback,
and drives loop counting for backends that play one buffer at a time
(Linux). Native-loop backends (macOS, Windows) play the whole sequence
in one shot. Backend choice is platform-gated in CMake; libcanberra is
a soft build dependency on Linux with a no-op fallback.
Also deletes two dead Qt5Multimedia.dll references from the NSIS
template that could never resolve in the current Qt6 build.
Closes#9886
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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]>
- Raised required macOS version to 13 for Swift packages.
- Removed fallback code switches for macOS and file provider framework releases before macOS 13.
- Consolidated Xcode project build settings into single declaration in build settings file.
Signed-off-by: Iva Horn <[email protected]>
It's a convention on macOS that app bundle names start with an uppercase
letter. Also this aligns the app name with Windows and Linux.
Signed-off-by: Felix Weilbach <[email protected]>