Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scripts/release_dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ if [[ -d "${SPARKLE_DIR}" ]]; then
"${SPARKLE_DIR}/XPCServices/Downloader.xpc"
fi
if [[ -f "${SPARKLE_DIR}/Autoupdate" ]]; then
# Sparkle ships Autoupdate as a universal (arm64+x86_64) binary even in
# its latest release. Dayflow itself is arm64-only, so the leftover
# x86_64 slice serves no purpose here and triggers macOS's "Support
# Ending for Intel-based Apps" deprecation warning on Apple Silicon.
if lipo -info "${SPARKLE_DIR}/Autoupdate" 2>/dev/null | grep -q x86_64; then
lipo -thin arm64 "${SPARKLE_DIR}/Autoupdate" -output "${SPARKLE_DIR}/Autoupdate"
fi
codesign -vvv --force -o runtime --sign "${SIGN_ID}" \
"${SPARKLE_DIR}/Autoupdate"
fi
Expand Down