410 Commits
Author SHA1 Message Date
Claudio Cambra 55578ddce0 fix(gui): Add compile-time check to verify window-closing shortcut added to QML window components
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]>
2026-10-13 19:15:34 +08:00
artyom-fedosov bf53a074d6 style(cmake): remove redundant conditions from endif/endfunction/endmacro/endforeach
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]>
2026-09-02 14:34:29 +02:00
Claudio Cambra f2a6eb70f3 fix(macos): Define local network usage description
Signed-off-by: Claudio Cambra <[email protected]>
2026-07-27 17:57:02 +08:00
Claudio Cambra 090111e82e fix(macOS): Prevent stripping of application name components following a dot during Sparkle updates
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]>
2026-07-20 12:52:08 +02:00
Iva HornandClaude Opus 4.7 81f64b3d03 feat(audio): replace Qt Multimedia with a native audio abstraction
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]>
2026-06-12 11:15:28 +02:00
Iva HornandClaude Opus 4.7 db9cd67e4b feat(macOS): fall back to SVG + ECM pipeline for branded builds
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]>
2026-06-09 16:52:05 +02:00
Iva HornandClaude Opus 4.7 2517359d05 feat(macOS): Use .icon format for macOS app bundle
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Iva Horn <[email protected]>
2026-06-09 09:24:09 +02:00
Iva Horn 91bd93ec24 fix(file-provider): Keep downloaded recursively and immediately (affects #9057)
Signed-off-by: Iva Horn <[email protected]>
2026-04-22 11:04:09 +02:00
Iva Horn 2ff6bef3bb fix(macOS): Sparkle Sandboxing
Signed-off-by: Iva Horn <[email protected]>
2026-03-31 13:13:51 +02:00
Iva Horn 78f36bf639 fix(macOS): Drop macOS 12 Support
- 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]>
2026-02-20 15:35:49 +01:00
Iva Horn 9bad162622 fix(macOS): Explicitly allow insecure HTTP connections.
Signed-off-by: Iva Horn <[email protected]>
2026-01-22 15:47:54 +01:00
Iva Horn 1679b82903 fix: Restored NCFPKAppGroupIdentifier in main app Info.plist
Signed-off-by: Iva Horn <[email protected]>
2025-12-18 10:29:40 +01:00
Iva Horn 291156dd48 fix(macOS): Development team group identifier prefix.
- Replaced "group." with DEVELOPMENT_TEAM.
- Removed every occurrence of SOCKETAPI_TEAM_IDENTIFIER_PREFIX.
- Removed NCFPKAppGroupIdentifier from MacOSXBundleInfo.plist.in.

Signed-off-by: Iva Horn <[email protected]>
2025-12-18 10:29:40 +01:00
Iva Horn 1de9cef1e6 fix(macOS): Enforce valid app group identifier.
Signed-off-by: Iva Horn <[email protected]>
2025-12-18 10:29:40 +01:00
Matthieu Gallien 4ebf5ae806 fix(test/csync): make sure the test executable can be found to be run
Signed-off-by: Matthieu Gallien <[email protected]>
2025-10-06 16:46:18 +02:00
Claudio Cambra 87275ec495 feat: Use upstream extra cmake modules
Signed-off-by: Claudio Cambra <[email protected]>
2025-10-06 16:46:18 +02:00
Jyrki Gadinger 38208e86d2 chore(build): revert now-obsolete local workaround for builds on macOS 26
This reverts commit 9d74744d08.

Qt 6.9.2 no longer tries to link to the AGL Carbon framework.

Signed-off-by: Jyrki Gadinger <[email protected]>
2025-09-25 09:49:53 +02:00
Jyrki Gadinger 9d74744d08 fix(build): allow building on macOS Tahoe
Signed-off-by: Jyrki Gadinger <[email protected]>
2025-09-19 09:20:23 +02:00
Heiko Becker 2a1e7a2304 fix(ECMAddAppIcon): Avoid warning with cmake >= 4.1
It started to warn about elseif() without a condition [1].

[1] https://gitlab.kitware.com/cmake/cmake/-/commit/74c62a180dccfd2cb7d594474f93e0facccdd60d

Signed-off-by: Heiko Becker <[email protected]>
2025-09-18 09:05:30 +02:00
Claudio Cambra 4ccb81440d feat(macOS): Add NCFPKAppGroupIdentifier to bundle info plist
Signed-off-by: Claudio Cambra <[email protected]>
2025-07-11 10:52:22 +02:00
Claudio Cambra a2b12cff72 fix(cmake): Build CFBundleLocalizations
Signed-off-by: Claudio Cambra <[email protected]>
2025-06-02 15:15:04 +02:00
Claudio Cambra c6b268fe10 fix(cmake): Format MacOSXBundleInfo.plist template
Signed-off-by: Claudio Cambra <[email protected]>
2025-06-02 15:15:04 +02:00
Jyrki Gadinger 83d6bbcb50 remove no longer required CMake modules
Signed-off-by: Jyrki Gadinger <[email protected]>
2025-05-14 14:55:27 +02:00
Jyrki Gadinger d458c2c620 chore: remove never used crashreporter
Signed-off-by: Jyrki Gadinger <[email protected]>
2025-05-08 09:52:53 +02:00
Andy Scherzinger 7655efa230 docs(reuse): Migrate to SPDX header
Signed-off-by: Andy Scherzinger <[email protected]>
2025-05-06 09:49:30 +02:00
Andy Scherzinger 49038ade94 docs(reuse): Migrate to SPDX header
Signed-off-by: Andy Scherzinger <[email protected]>
2025-04-25 17:27:21 +02:00
Jyrki Gadinger 2bbbacb8dc fix(mac): bump deployment target to 12.0
Qt 6.8 now requires macOS 12.0 as per https://doc.qt.io/qt-6.8/macos.html

for comparison, Qt 6.7 supported 11.0 and newer: https://doc.qt.io/qt-6.7/macos.html

also update the Packages project to refuse to install on anything older
than Monterey (12.0)

Signed-off-by: Jyrki Gadinger <[email protected]>
2025-04-04 12:28:04 +02:00
Jyrki Gadinger da43f3dfb4 set CFBundleDevelopmentRegion to "en" and set CFBundleAllowMixedLocalizations
according to [1] the value should be a ISO 639-1 code, so let's correct
it

`CFBundleAllowMixedLocalizations` is the most interesting one: with this
being set the reported QLocale will no longer be English as well

(this also bumps the version info to 2025 :D)

[1]: https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundledevelopmentregion

Signed-off-by: Jyrki Gadinger <[email protected]>
2025-03-26 17:45:02 +01:00
Claudio Cambra 7142f55788 Update copyright year in macOS info.plist template
Signed-off-by: Claudio Cambra <[email protected]>
2024-11-05 16:18:16 +09:00
Claudio Cambra a57eb77131 Use xml-escaped application vendor in info plist, fixing code-signing issues for vendors with special chars
Signed-off-by: Claudio Cambra <[email protected]>
2024-10-31 18:39:13 +08:00
Claudio Cambra 93c1485dd7 Bump up minimum system version to 11.0 on macOS (required by Qt 6)
Signed-off-by: Claudio Cambra <[email protected]>
2024-09-23 10:32:34 +02:00
Camila dd2ca78884 Change minimun mac OS version to 10.13.
Signed-off-by: Camila <[email protected]>
2024-03-11 15:20:51 +01:00
Camila 02e4f05358 Use a new FindSQLite3 cmake module.
Add find sqlite to the root CMakeLists.txt.

Signed-off-by: Camila <[email protected]>
2023-12-11 11:50:33 +01:00
Camila d7a72d679e Upgrade to Mac OS 12.0.0.
- Mac OS Monterey should be the minimun OS version since Apple stopped
  supporting anything bellow.

Signed-off-by: Camila <[email protected]>
2023-10-25 09:49:39 +02:00
Camila 60d975d1dc Ignore the USE_OUR_OWN_SQLITE3 flag.
Always look for sqlite in the system in the 3 platforms.

Signed-off-by: Camila <[email protected]>
2023-08-29 12:05:03 +02:00
Dimitri Papadopoulos 9d830e94f9 Fix typos found by codespell
Signed-off-by: Dimitri Papadopoulos <[email protected]>
2023-06-21 08:47:13 +02:00
alex-z 7f6c2f946b Move Windows shell extension DLLs to a root installation directory.
Signed-off-by: alex-z <[email protected]>
2022-12-29 17:59:21 +01:00
allexzander 289a641d74 VFS Windows: Display the sharing state and lock state in the 'Status' column of Windows Explorer
Signed-off-by: allexzander <[email protected]>
2022-10-04 18:32:51 +02:00
Matthieu Gallien 4cb87f59f5 use -Wall -Wextra -Wpedantic when compiling with current gcc versions
Signed-off-by: Matthieu Gallien <[email protected]>
2022-08-10 12:02:02 +00:00
alex-z d42d3c057f Implement URI handler for local file editing
Signed-off-by: alex-z <[email protected]>
2022-08-03 11:38:33 +03:00
Claudio Cambra 032774e280 Update macOS Info.plist
Signed-off-by: Claudio Cambra <[email protected]>
2022-07-21 15:08:24 +02:00
Claudio Cambra 850d23c63a Only set _FORTIFY_SOURCE when a higher level of this flag has not been set
Signed-off-by: Claudio Cambra <[email protected]>
2022-07-12 20:23:35 +02:00
Claudio Cambra 3f19f53ca4 Add new and correct sparkle update signature
Signed-off-by: Claudio Cambra <[email protected]>
2022-05-05 15:08:03 +02:00
alex-z 77bf892809 Use different icon for a sync folder on Windows depending on zoom level.
Signed-off-by: alex-z <[email protected]>
2021-12-07 15:48:16 +00:00
Felix Weilbach 88e7861239 Enable warnings as errors when compiling with Clang and GCC
Signed-off-by: Felix Weilbach <[email protected]>
2021-09-17 13:32:26 +00:00
Nicolas Fella d247e4791a Remove copy of GNUInstallDirs
It is provided by CMake itself

Signed-off-by: Nicolas Fella <[email protected]>
2021-09-01 11:43:03 +00:00
Matthieu Gallien f9bfd8adec takes ECMCoverageOption from ECM to enable code coverage analysis
Signed-off-by: Matthieu Gallien <[email protected]>
2021-07-28 09:26:40 +00:00
Felix Weilbach 7850551cad Start macOS app bundle name with uppercase letter
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]>
2021-06-15 12:19:55 +00:00
Felix Weilbach 74b2c5761d Check compiler against CMAKE_CXX_COMPILER_ID
Signed-off-by: Felix Weilbach <[email protected]>
2021-06-07 15:18:03 +02:00
Felix Weilbach cf616abc46 Remove obsolete AddAppIconMacro
Signed-off-by: Felix Weilbach <[email protected]>
2021-05-26 08:54:12 +00:00