Repository navigation
Conversation
i2h3
requested review from
camilasan,
claucambra,
mgallien and
nilsding
as code owners
November 30, 2026 14:55
i2h3
marked this pull request as draft
November 30, 2026 15:08
The Mac App Store does not allow an app to update itself. Building with BUILD_UPDATER=OFF already leaves out Sparkle, the update check and the Sparkle temporary-exception entitlement, but mac-crafter could not make such a build: --disable-auto-updater only skipped downloading Sparkle. BUILD_UPDATER stayed on, so the client still polled the update server, offered a manual download and kept the temporary exception. BUILD_UPDATER is passed in both directions because an incremental build keeps the value from the previous configure. The Sparkle keys in Info.plist are only read by Sparkle, so they are left out as well when the updater is not built. Closes #9932. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
i2h3
force-pushed
the
i2h3/mac-crafter-build-updater-off
branch
from
November 30, 2026 15:10
ba65fb1 to
780def5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #9932.
Summary
A Mac App Store build must not contain a self-updater (#9932, part of #9941). Building with
BUILD_UPDATER=OFFalready leaves out Sparkle, the update check, the update settings and Sparkle's-spks/-spkitemporary-exception entitlement. This needs no newBUILD_FOR_APP_STOREswitch (#9935). Two gaps were left, and this PR closes them:--disable-auto-updateronly skipped downloading Sparkle.BUILD_UPDATERstayed on, so the client still checkedupdates.nextcloud.org, offered a manual download link and kept the temporary exception. mac-crafter now passes-DBUILD_UPDATER=OFFwith--disable-auto-updaterand-DBUILD_UPDATER=ONwithout it, using Craft'snextcloud-client.argsoption. It passes the value in both cases because an incremental build reuses the previous CMake cache.Info.plist.SUShowReleaseNotes,SUPublicDSAKeyFile,SUPublicEDKeyandSUEnableInstallerLauncherServiceare now only written whenBUILD_UPDATERis on. With the updater, the generatedInfo.plistis byte-identical to the one built frommaster.Side effects for reviewers:
NextcloudDevXcode build (Craft.sh) uses--disable-auto-updater, so dev builds no longer contain any updater. The macOS CI build still compiles the updater, because it keeps the defaultBUILD_UPDATER=ON.argsoption replaces, rather than extends, anynextcloud-client.argsset inBlueprintSettings.ini. None is set in this repository. A dedicatedbuildUpdateroption indesktop-client-blueprintswould avoid that, but it has to land there before mac-crafter can use it.Not changed: mac-crafter still tries to sign the Sparkle helpers and still writes a
.tbzwhen Sparkle is absent. The signing attempts only log errors.Tests
UpdaterCraftOptionsTests(swift testinadmin/osx/mac-crafter): 13 of 13 tests pass.SparkleInfoPlistKeysTest(new ctest) checks that the four keys are present whenBUILD_UPDATERis on and absent when it is off.SparklePublicKeyTestnow only runs when it is on. Run against a CMake configure on macOS with the Craft dependencies:Info.plistbuilt frommasterwithBUILD_UPDATER=OFF, the check fails withUnexpected SUShowReleaseNotes …. With this change, it passes.BUILD_UPDATER=ON,SparkleInfoPlistKeysTestandSparklePublicKeyTestboth pass.TODO
mac-crafter build --disable-auto-updater --build-testsand check four things: the log saysCompiling without updater;ctest -R Sparklepasses;codesign -d --entitlements :- <app>has notemporary-exception.mach-lookup.global-name; and the settings show no update section.Compiling with updaterand that Sparkle is bundled again.No full Craft or mac-crafter build has been run for this change. The Craft side was checked by reading Craft's option handling, not by running it.
Checklist
AI (if applicable)