commit f496cf482cba234103974143c7d5aeda24b4903b
parent 85f8972543255f0855b912c4b2d317c8f2e8ddd5
Author: Michael Camilleri <[email protected]>
Date: Tue, 7 Jul 2026 12:29:00 +0900
Suppress tips from displaying in marketing images
Diffstat:
2 files changed, 16 insertions(+), 13 deletions(-)
diff --git a/Crossmate/Services/AppServices.swift b/Crossmate/Services/AppServices.swift
@@ -797,7 +797,15 @@ final class AppServices {
// List (see TipStore.launchesBeforeTips), so it must run before the tip
// is read.
tips.noteColdLaunch()
- if let tip = tips.currentTip() {
+ // Keep onboarding tips out of marketing screenshots — the import scene
+ // shows the Game List, and a tip banner is chrome that doesn't belong in
+ // the captured image.
+ #if DEBUG
+ let suppressTips = MarketingLaunch.isScreenshot
+ #else
+ let suppressTips = false
+ #endif
+ if !suppressTips, let tip = tips.currentTip() {
announcements.post(tip.liveAnnouncement())
}
diff --git a/Scripts/screenshots-marketing.sh b/Scripts/screenshots-marketing.sh
@@ -122,20 +122,15 @@ fi
xcrun simctl boot "$UDID" 2>/dev/null || true
xcrun simctl bootstatus "$UDID" -b
-# Marketing status-bar time/date: 9:41 AM (Apple's canonical time) on the day of
-# this repo's first commit to master. Passing a full ISO 8601 string to --time
-# sets BOTH the date and the time on devices whose status bar shows a date
-# (iPad); a bare "9:41" sets only the time. The date is derived from the UTC
-# instant, so parse the wall-clock 9:41 in the local zone first.
+# Marketing status-bar time/date: 9:41 AM (Apple's canonical time) on 2026-04-09,
+# the date of this repo's first commit to master. Passing a full ISO 8601 string
+# to --time sets BOTH the date and the time on devices whose status bar shows a
+# date (iPad); a bare "9:41" sets only the time. The date comes from the UTC
+# instant, so convert the wall-clock 9:41 in the local zone first.
# NOTE: current Simulator versions apply only the time from this string and fall
# back to today's date; the date half may start working if Apple fixes that.
-FIRST_COMMIT_DAY=$(git -C "$REPO_DIR" log master --reverse --format='%cd' --date=format:'%Y-%m-%d' 2>/dev/null | head -1)
-if [ -n "$FIRST_COMMIT_DAY" ]; then
- MARKETING_EPOCH=$(date -j -f "%Y-%m-%d %H:%M:%S" "${FIRST_COMMIT_DAY} 09:41:00" "+%s")
- MARKETING_TIME=$(date -u -r "$MARKETING_EPOCH" "+%Y-%m-%dT%H:%M:%S.000Z")
-else
- MARKETING_TIME="9:41"
-fi
+MARKETING_EPOCH=$(date -j -f "%Y-%m-%d %H:%M:%S" "2026-04-09 09:41:00" "+%s")
+MARKETING_TIME=$(date -u -r "$MARKETING_EPOCH" "+%Y-%m-%dT%H:%M:%S.000Z")
xcrun simctl status_bar "$UDID" override \
--time "$MARKETING_TIME" \