🔬 Add Sparkle update channels and nightly macOS release publishing#146
Merged
🔬 Add Sparkle update channels and nightly macOS release publishing#146
Conversation
Add a channel-aware update system (stable/beta/nightly) for the macOS app using Sparkle's delegate API with separate appcasts per channel. - UpdateChannel enum with per-channel feed URLs and Sparkle channel IDs - SPUUpdaterDelegate for feedURLString and allowedChannels - Runtime channel selection persisted in UserDefaults - Update Channel picker in Preferences → Workspace → Updates - Channel-aware archive and appcast generation scripts (CHANNEL env var) - Automated nightly workflow (.github/workflows/nightly.yml) - Updated DEPLOYMENT.md with channel documentation
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.
Summary
Adds a channel-aware Sparkle update system for the macOS app with three channels: stable, beta, and nightly.
UpdateChannelenum with per-channel feed URLs, Sparkle channel IDs, and appcast filenames.AppUpdaterDelegateimplementsfeedURLString(for:)andallowedChannels(for:)to route Sparkle to the correct feed at runtime.appcast.xml,appcast-beta.xml,appcast-nightly.xml). Stable users never see non-stable builds.archive-macos-app-release.shandgenerate-sparkle-appcast.shaccept aCHANNELenv var that auto-configures the correct feed URL and appcast filename..github/workflows/nightly.ymlruns daily at 06:00 UTC. Computes a date-stamped version (e.g.0.4.0-nightly.20260324), archives/notarizes the app, generatesappcast-nightly.xml, and publishes to a rollingnightlyGitHub prerelease.docs/DEPLOYMENT.mdwith the channel model, feed URLs, manual vs automated flows, and required repository secrets.Design decisions
SPUUpdaterDelegate.feedURLString(for:)method returns the URL for the selected channel.<base>-nightly.YYYYMMDDwith monotonically increasing build numbers. Sparkle sorts by build number, so nightlies sort correctly without breaking stable release progression.Required secrets for nightly CI
The workflow needs these repository secrets configured before it will run:
SPARKLE_PUBLIC_ED_KEY,SPARKLE_PRIVATE_ED_KEY,MACOS_DEVELOPMENT_TEAM,APPLE_NOTARY_KEY_ID,APPLE_NOTARY_ISSUER_ID,APPLE_NOTARY_PRIVATE_KEYTest plan
xcodebuild build— verified)xcodebuild build— verified)CHANNEL=nightly ./scripts/generate-sparkle-appcast.shand verifyappcast-nightly.xmloutputCloses #139