834 Commits
Author SHA1 Message Date
Jyrki Gadinger 848ad7f323 chore(appimage): fix folder permissions as suggested by appimagetool
resolves this awesome error:

    ERROR: /app/squashfs-root
           has mode 0700, but it must be readable and executable for all users (owner, group and others); the AppImage is run by users other than you, who would get 'Permission denied'
           Fix: chmod a+r,a+x '/app/squashfs-root'
    [...]
    appimagetool: found 88 problem(s) in the AppDir, nothing was changed and no AppImage was created.
    Fix the paths listed above, then run appimagetool again. To fix all read/execute permissions at once, run:
        chmod -R a+rX '/app/squashfs-root'
        chmod a+rx '/app/squashfs-root/AppRun'
    If the files belong to root, prefix the chmod commands with sudo or first take ownership with this command: sudo chown -R $(id -un):$(id -gn) '/app/squashfs-root'
    If you are certain that your AppImage needs these modes, pass --no-check-permissions to skip this check.

Signed-off-by: Jyrki Gadinger <[email protected]>
2026-10-30 10:02:20 +01:00
Claudio Cambra 9b3da4cd13 fix(appimage): resolve installed icon from desktop entry
Read the main desktop entry icon name and validate its installed 512px PNG before deployment. Reuse the resolved path in both linuxdeploy calls, with regression coverage for deployment arguments, branded names, and missing icons.

Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
2026-10-27 19:56:16 +08:00
Matthieu Gallien b304fc0ae1 fix(linux/flatpak): fix icon name in flatpak package
Close #6115

Signed-off-by: Matthieu Gallien <[email protected]>
2026-10-27 12:20:30 +08:00
Jyrki Gadinger 0d11dc3b5e chore(ci): use KDE's GitHub mirror of craftmaster
Signed-off-by: Jyrki Gadinger <[email protected]>
2026-10-14 12:14:10 +02:00
Matthieu Gallien 05f479594b Revert "fix(msi): do not completely remove the previous installation when updating"
This reverts commit 532c5dfdeb.
2026-10-07 09:36:44 +02:00
xavi-b 37187fb1e4 fix(linux/vfs): Copy missing openvfs/config.json for AppImage
Signed-off-by: xavi-b <[email protected]>
2026-09-28 20:52:17 +02:00
Matthieu Gallien 521afadaa8 fix(linux): avoid building AppImage dependencies: already included
Signed-off-by: Matthieu Gallien <[email protected]>
2026-09-23 21:57:58 +02:00
Matthieu Gallien 63f796a05e fix(linux): fix AppImage build on almalinux 9
use the latest correct docker image

adapt to the new base image

change the default environement values to be sane and valid

Signed-off-by: Matthieu Gallien <[email protected]>
2026-09-23 15:51:28 +02:00
Matthieu Gallien a97d2c475a feat(linux/vfs): update the openvfs commit to use when building
update AppImage and flatpak configurations

Signed-off-by: Matthieu Gallien <[email protected]>
2026-09-16 18:03:59 +02:00
Matthieu Gallien f8417ae801 feat(linux/vfs): build AppImage with openvfs virtual files enabled
Signed-off-by: Matthieu Gallien <[email protected]>
2026-09-16 18:03:59 +02:00
Matthieu Gallien fff9511451 feat(linux/vfs): add flatpak manifest and enable virtual files
should enable to build flatpak packages directly from desktop repository

modify the build manifest to enable the new openvfs virtual files
feature

Signed-off-by: Matthieu Gallien <[email protected]>
2026-09-16 18:03:59 +02:00
Matthieu Gallien d21a6572b0 chore: use our own flatpak build image with kde 6.11 Sdk
Signed-off-by: Matthieu Gallien <[email protected]>
2026-09-10 12:24:20 +02:00
Matthieu Gallien ff8c075b63 feat(ci): add flatpak to CI
should generate a flatpak package on PR for easy test

Signed-off-by: Matthieu Gallien <[email protected]>
2026-09-08 13:17:30 +02:00
Jyrki Gadinger b452c0ed95 fix(mac-crafter): quote file path for codesign invocation
as the command is joined with spaces later, this would break if
any path component has a space in it

Signed-off-by: Jyrki Gadinger <[email protected]>
2026-09-03 11:22:30 +02:00
Camila Ayres 85f2e4f352 fix(osx): refresh stale FinderSync pluginkit registration on install.
Existing registration from a previous install is dropped and
added again rather than left untouched. pluginkit -a doesn't work
when the identifier is already registered, which can leave a
stale UUID/path cached in the PlugInKit database after the appex
on disk has been replaced by a newer build (e.g. installing over
an existing client), causing the FinderSyncBroker to fail to spawn.
So the result is a not working Finder extension.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Camila Ayres <[email protected]>
2026-09-02 15:11:30 +02:00
Camila Ayres 6907af3744 fix(osx): set BUNDLE_CAN_DOWNGRADE
Enables atomic replacement of the outer @[email protected]
payload during install/upgrade instead of PackageKit's default
file by file diff.

Without this, installing a rebranded client over an existing
install like a legacy client receipt being upgraded
via APPLICATION_REV_DOMAIN_INSTALLER can leave stale files from
the previous bundle mixed with the new payload, producing an
invalid code signature ("a sealed resource is missing or
invalid") that fails Gatekeeper/launchd validation on next boot.

Signed-off-by: Camila Ayres <[email protected]>
2026-08-31 19:21:01 +02:00
Claudio Cambra 82ddd55c3c fix(mac-crafter): Add test for team id verification
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-24 20:49:27 +08:00
Claudio Cambra 03531c855f fix(mac-crafter): Verify matching team identifier between NEXTCLOUD.cmake value and code signature used for signing
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-24 20:49:27 +08:00
Claudio Cambra d48332d0cb fix(mac-crafter): Test code bundle component identification
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-24 20:49:27 +08:00
Claudio Cambra 3c6cc497ae fix(mac-crafter): Extract team identifier verifier to separate file
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-24 20:49:27 +08:00
Claudio Cambra 0b83d82259 fix(mac-crafter): Test team identifier identification
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-24 20:49:27 +08:00
Claudio Cambra cc4979c6b3 fix(mac-crafter): Verify matching team identifiers in signatures
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-24 20:49:27 +08:00
RoGreat a666587983 fix(nix): update nix flake for desktop client
Signed-off-by: RoGreat <[email protected]>
2026-08-24 12:38:52 +02:00
RoGreat 31928a1430 style(nix): reformat nix flake for desktop client
Signed-off-by: RoGreat <[email protected]>
2026-08-24 12:38:52 +02:00
xhon-pelushi 55cd0a6b41 fix(appimage): bundle sync-exclude.lst inside AppDir so it ships in the AppImage
Fixes #8483

The AppImage build script moved sync-exclude.lst into /app/usr/bin/,
which is outside the AppDir tree that linuxdeploy/appimagetool actually
package. As a result the file never made it into the AppImage, and
ConfigFile::excludeFileFromSystem()'s AppImage fallback (which looks
next to the running executable) found nothing, leaving Linux AppImage
users with only the few hardcoded read-only patterns instead of the
full default exclusion list (including ~$* for Office lock files).

Signed-off-by: xhon-pelushi <[email protected]>
2026-08-24 10:57:57 +02:00
Rello 471d1e9452 Refactor entitlements handling for login items
make Codesign.swift discover branded login-item names dynamically and derive the broker entitlement manifest from the existing FinderSync entitlement path. This avoids changing the CLI or Brander command.

Signed-off-by: Rello <[email protected]>
2026-07-31 18:36:18 +02:00
Iva Horn 6963914a62 fix(#10478): Refactored XPC for FinderSync Extension
Signed-off-by: Iva Horn <[email protected]>
2026-08-01 00:23:54 +08:00
Iva Horn 0e32cd7801 Improve FinderSync Extension handling
Signed-off-by: Iva Horn <[email protected]>
2026-07-13 14:04:43 +02:00
Iva HornandClaude Opus 4.7 7266ece339 chore: Remove QtWebEngine
Drop the legacy embedded login flow (Flow v1 / WebViewFlow) and every
piece of build, packaging, and signing infrastructure that existed to
support it. The modern OAuth flow (Flow2, used by Nextcloud server
>= 16.0.0) already drives login through the system browser and remains
the only authentication path.

User-visible consequence: Nextcloud servers older than 16.0.0, and any
server advertising the legacy globalscale.desktoplogin=1 capability,
can no longer be added through an in-app embedded browser. Modern
servers are unaffected.

Changes:
- delete src/gui/wizard/webview{,page}.{h,cpp,ui,ui.license}
- drop BUILD_WITH_WEBENGINE option, find_package calls, and
  target_link_libraries entries from CMake; drop the cmakedefine in
  config.h.in
- remove DetermineAuthTypeJob's WebViewFlow enum value and the
  third (OldFlow) capability probe; the job now only runs the GET and
  PROPFIND probes
- remove ConfigFile::forceLoginV2 / setForceLoginV2 and the
  forceLoginV2 settings key
- drop the useFlow2 boolean machinery: WebFlowCredentialsDialog now
  always hosts Flow2AuthWidget, and OwncloudWizard / OwncloudSetupPage
  no longer thread a useFlow2 flag
- drop Page_WebView, WebViewPage, the welcomepage WebEngine branch
  (Create Account now always opens the system browser), and related
  #ifdef WITH_WEBENGINE blocks
- remove --without-webengine flag and buildWithWebEngine craft option
  from mac-crafter
- remove signQtWebEngineProcessApp helper from mac-crafter's Signer
- remove the WiX/MSI rule that stripped Qt6WebEngineCore.pdb
- remove qt5.qtwebengine (and the now-dead isARM helper) from the Nix
  flake

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Iva Horn <[email protected]>
2026-07-01 11:49:04 +02:00
Iva Horn 5b81cb0471 fix(mac-crafter): Fix clean build by conditionally signing file provider extensions
Signed-off-by: Iva Horn <[email protected]>
2026-06-10 10:24:02 +02:00
Iva Horn b70e52a437 chore(macOS): Updated workspace dependencies and consolidated Package.resolved files.
Signed-off-by: Iva Horn <[email protected]>
2026-06-09 17:48:13 +02:00
Iva Horn 9c3ea7b03e chore(doc): Updated documentation for contributors on macOS
Signed-off-by: Iva Horn <[email protected]>
2026-05-27 19:19:30 +02:00
Iva Horn 6a1e955c36 fix(#9929): Add post installation script step to delete the obsolete launch agent file to avoid multiple client instances.
Signed-off-by: Iva Horn <[email protected]>
2026-05-06 09:17:58 +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 5920d229de chore(mac-crafter): Sparkle 2.9.1
Signed-off-by: Iva Horn <[email protected]>
2026-03-31 12:55:42 +02:00
István Váradi 58ceef186b ci: Remove Debian build
Signed-off-by: István Váradi <[email protected]>
2026-03-26 09:44:11 +01:00
Iva Horn c447fdbcb4 feat(macOS): Replace UNIX sockets with XPC
Replace the UNIX domain socket IPC between the desktop client and the
macOS Finder Sync extension with Apple's native XPC mechanism.

Motivation:

The socket-based approach used a custom line-based text protocol over
UNIX domain sockets, requiring manual parsing, hand-managed connection
lifecycles, and offering no built-in security validation. XPC is Apple's
recommended IPC for app extensions, providing type-safe method dispatch,
automatic lifecycle management, and code-signing verification.

Architecture:

Two Objective-C protocols define a bidirectional XPC contract:

- FinderSyncAppProtocol (extension -> app): file/folder status queries,
  context menu requests, and command execution.
- FinderSyncProtocol (app -> extension): path registration, status badge
  pushes, localized string delivery, and menu item streaming.

On the app side, FinderSyncXPC manages the XPC listener and broadcasts
to all connected extensions. FinderSyncService implements the app
protocol by adapting calls to the existing cross-platform SocketApi
business logic via a ResponseCapturingListener, avoiding any
reimplementation of sync status or menu command handling. Thread safety
across XPC and Qt threads is ensured via QMetaObject::invokeMethod with
blocking queued connections.

On the extension side, FinderSyncXPCManager handles connection setup,
reconnection with exponential backoff, and status caching. FinderSync
(the FIFinderSync subclass) delegates all communication to the XPC
manager and bridges Finder's synchronous menuForMenuKind: API to XPC's
async model using NSCondition.

Security is enforced through macOS entitlements (mach-register and
mach-lookup for the FinderSyncService name) and a server-side command
whitelist that restricts executable commands to a predefined set.

Removed:

- NCDesktopClientSocketKit framework (LocalSocketClient, LineProcessor)
- FinderSyncSocketLineProcessor and FileProviderSocketLineProcessor
- FileProviderSocketServer and FileProviderSocketController

Resolves #9430

Signed-off-by: Iva Horn <[email protected]>
2026-03-25 13:31:19 +01:00
Iva Horn b279a24892 fix(macOS): Fix developer build
- Changed KDE Craft build directory of mac-crafter to enable Spotlight indexing
- Copy debug symbol bundles into build directories
- Flatten the broken debug symbol bundles produced by KDE Craft
- Updated AGENTS.md

Signed-off-by: Iva Horn <[email protected]>
2026-03-23 16:35:32 +01:00
Iva Horn 0e9c88d404 fix(macOS): GitHub Copilot Review Amendments
Signed-off-by: Iva Horn <[email protected]>
2026-02-26 16:47:47 +01:00
Iva Horn f5dad5768a fix(macOS): Copy Debugging Symbols
Xcode could no longer resolve the debugging symbols for the main binary. This fixes it.

Signed-off-by: Iva Horn <[email protected]>
2026-02-26 14:15:16 +01:00
Iva Horn 7bd219b84d feat(macOS): QtWebEngine Switch
Signed-off-by: Iva Horn <[email protected]>
2026-02-26 09:28:02 +01:00
Iva Horn c1d52c4b89 feat(macOS): Consolidated Xcode Workspace (#9435)
- Derived data directory ".xcode" for Xcode workspace in project root.
- Mac crafter build directory ".mac-crafter" in project root.
- Added all Swift packages and Xcode projects to workspace.
- Added some important top-level files and other directories.
- Removed obsolete Xcode workspace in shell integration directory.
- Removed obsolete OwnCloudFinderSync folder.
- Updated AGENTS.md.
- Updated README.md.
- Renamed NextcloudDev scheme to Nextcloud Developer Client.
- Fixed Xcode not being abled to resolve breakpoints because the dSYM files are in a dot-directory which is not indexed by Spotlight. mac-crafter now copies the debug symbols manually into the app bundle so they are found.

Signed-off-by: Iva Horn <[email protected]>
2026-02-23 11:22:33 +01: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
Jyrki Gadinger 7826f0192c chore(mac-crafter): default to master blueprint ref by default
Signed-off-by: Jyrki Gadinger <[email protected]>
2026-02-16 15:45:31 +01:00
Iva Horn 55d42d5569 fix(macOS): Persistent access to security scoped synchronization folders
Signed-off-by: Iva Horn <[email protected]>
2026-02-10 14:23:56 +01:00
Iva Horn 2ddf5e7098 chore(macOS): Moved TransifexStringCatalogSanitizer
Signed-off-by: Iva Horn <[email protected]>
2026-02-06 09:16:27 +01:00
Matthieu Gallien fbb4794655 fix(AppImage): bundle less libraries to improve compatibility
idea is that by not bundling x11, we will use the platform one that
should always work

Close #9374

Signed-off-by: Matthieu Gallien <[email protected]>
2026-01-27 13:35:56 +01:00
Matthieu Gallien f68f2cd4c6 fix(AppImage): bundle OpenGL drivers in the AppImage
hopefully makes it run on more platforms with less dependencies on the
host distribution

Signed-off-by: Matthieu Gallien <[email protected]>
2026-01-23 11:42:47 +01:00
Matthieu Gallien 966a9d7ad9 fix(appimage): ensure more libraries are bundled in the AppImage
will enable the AppImage to works on more distributions

Close #9337

Signed-off-by: Matthieu Gallien <[email protected]>
2026-01-21 17:10:29 +01:00
István Váradi b565784274 ci: Remove Ubuntu Plucky, add Resolute
Signed-off-by: István Váradi <[email protected]>
2026-01-20 16:10:58 +01:00