diff --git a/scripts/check_app_discovery_live.sh b/scripts/check_app_discovery_live.sh index 4e9bd28c..852acd89 100644 --- a/scripts/check_app_discovery_live.sh +++ b/scripts/check_app_discovery_live.sh @@ -63,6 +63,23 @@ for slug in brain-burst snaplingo; do grep -Fq 'application/ld+json' "$tmp/$slug.html" || { echo "FAIL $slug SEO metadata missing" >&2; exit 1; } grep -Fq 'placement:' "$tmp/$slug.html" || { echo "FAIL $slug placement attribution missing" >&2; exit 1; } done +# Source merged app SEO and product-truth changes must be on the *public* origin. +grep -Fq 'BrainBurst: Daily Trivia & 1v1 Quiz Battles | Android' "$tmp/brain-burst.html" || { echo 'FAIL BrainBurst current SEO title not live' >&2; exit 1; } +if grep -Eq 'How do I restore my purchase\?|How do I cancel a subscription\?|Many features work offline\.' "$tmp/brain-burst.html"; then + echo 'FAIL BrainBurst advertises unsupported billing or offline features' >&2; exit 1 +fi +# The family-story support page is a separate SEO landing; do not confuse source merge with a live rollout. +fetch '/support/taletime/' 'taletime.html' +grep -Fq 'TaleTime: AI Story Maker for Parents & Kids | SK APPS' "$tmp/taletime.html" || { echo 'FAIL TaleTime current SEO title not live' >&2; exit 1; } +grep -Fq 'Create stories together in TaleTime' "$tmp/taletime.html" || { echo 'FAIL TaleTime meta description not live' >&2; exit 1; } +# Every localized press page must exist on the VPS, with correct canonical and event wiring. +for entry in 'en:press/:en' 'es:press/es/:es' 'pt-br:press/pt-br/:pt-BR' 'ja:press/ja/:ja' 'id:press/id/:id'; do + IFS=: read -r code route language <<< "$entry" + fetch "/$route" "press-$code.html" + grep -Fq "" "$tmp/press-$code.html" || { echo "FAIL press $code language not live" >&2; exit 1; } + grep -Fq "https://appdevelopsk.com/$route" "$tmp/press-$code.html" || { echo "FAIL press $code canonical not live" >&2; exit 1; } + grep -Fq 'press_app_click' "$tmp/press-$code.html" || { echo "FAIL press $code app attribution missing" >&2; exit 1; } +done fetch '/support/face-reaction-battle/' 'face-battle.html' grep -Fq 'data-alternative="instant-judge"' "$tmp/face-battle.html" || { echo 'FAIL unavailable game alternative CTA missing' >&2; exit 1; } grep -Fq 'data-alternative="blur"' "$tmp/face-battle.html" || { echo 'FAIL second unavailable game alternative CTA missing' >&2; exit 1; } @@ -74,9 +91,9 @@ grep -Fq 'const FEAT_T={en:{0:"Choose A or B on a question."' "$tmp/dotchi.html" fetch '/support/debate-me/' 'debate-me.html' # The post-GSC 2026-11-11 snippet must be live; rejecting the old SEO # title prevents a GitHub merge from being mistaken for a published change. -grep -Fq 'Debate Me – Free AI Debate App for Android | SK APPS' "$tmp/debate-me.html" || { echo 'FAIL Debate Me new SEO title not live' >&2; exit 1; } -grep -Fq 'content="Practice debates against an AI opponent in six topic categories' "$tmp/debate-me.html" || { echo 'FAIL Debate Me new search description not live' >&2; exit 1; } -grep -Fq '' "$tmp/debate-me.html" || { echo 'FAIL Debate Me OG title not live' >&2; exit 1; } +grep -Fq 'Debate Me: AI Debate Practice App for Android | SK APPS' "$tmp/debate-me.html" || { echo 'FAIL Debate Me new SEO title not live' >&2; exit 1; } +grep -Fq 'content="Practice debates against an AI opponent in Debate Me for Android' "$tmp/debate-me.html" || { echo 'FAIL Debate Me new search description not live' >&2; exit 1; } +grep -Fq '' "$tmp/debate-me.html" || { echo 'FAIL Debate Me OG title not live' >&2; exit 1; } grep -Fq 'data-position="hero"' "$tmp/debate-me.html" || { echo 'FAIL Debate Me first-screen Play CTA not live' >&2; exit 1; } grep -Fq 'data-position="details"' "$tmp/debate-me.html" || { echo 'FAIL Debate Me details Play CTA missing' >&2; exit 1; } grep -Fq 'support_debate_me_hero' "$tmp/debate-me.html" || { echo 'FAIL Debate Me Play attribution missing' >&2; exit 1; } diff --git a/scripts/publish_app_discovery.sh b/scripts/publish_app_discovery.sh index f2b8d974..0052e89c 100644 --- a/scripts/publish_app_discovery.sh +++ b/scripts/publish_app_discovery.sh @@ -15,7 +15,7 @@ root="${APP_SITE_DEPLOY_ROOT:-/var/www/html}" if [[ ! "$host" =~ ^[a-zA-Z0-9_.@-]+$ || ! "$root" =~ ^/var/www/[a-zA-Z0-9_./-]+$ ]]; then echo 'Invalid APP_SITE_DEPLOY_HOST or APP_SITE_DEPLOY_ROOT' >&2; exit 2 fi -files=(index.html apps.html sitemap.xml robots.txt guides/quick-games/index.html guides/quick-games/ja/index.html guides/daily-habits/index.html guides/decision-helpers/index.html guides/ai-tools/index.html support/brain-burst/index.html support/snaplingo/index.html support/face-reaction-battle/index.html support/twotaku/index.html support/debate-me/index.html support/idea-market/index.html support/blur/index.html support/instant-judge/index.html support/roast-me/index.html support/future-me/index.html support/tappitsu-battle/index.html support/taletime/index.html support/dog-breeds-encyclopedia/index.html) +files=(index.html apps.html sitemap.xml robots.txt guides/quick-games/index.html guides/quick-games/ja/index.html guides/daily-habits/index.html guides/decision-helpers/index.html guides/ai-tools/index.html support/brain-burst/index.html support/snaplingo/index.html support/face-reaction-battle/index.html support/twotaku/index.html support/debate-me/index.html support/idea-market/index.html support/blur/index.html support/instant-judge/index.html support/roast-me/index.html support/future-me/index.html support/tappitsu-battle/index.html support/taletime/index.html support/dog-breeds-encyclopedia/index.html press/index.html press/es/index.html press/pt-br/index.html press/ja/index.html press/id/index.html) for file in "${files[@]}"; do [[ -s "$file" ]] || { echo "Missing source file: $file" >&2; exit 2; } done diff --git a/scripts/test_press_kit.py b/scripts/test_press_kit.py index f8c343f6..f4adc805 100644 --- a/scripts/test_press_kit.py +++ b/scripts/test_press_kit.py @@ -60,6 +60,26 @@ def test_all_locales_and_store_destinations(self): self.assertEqual(sum(x.get("data-cta")=="store" for tag,x in doc.attrs if tag=="a"), 5) self.assertEqual(sum(tag=="a" and attrs.get("lang") in PAGES for tag,attrs in doc.attrs), len(PAGES)) + def test_press_pages_in_manual_vps_publish_manifest(self): + script = (ROOT / "scripts" / "publish_app_discovery.sh").read_text(encoding="utf-8") + self.assertIn('mode="${1:---dry-run}"', script) + rsync_commands = [line.strip() for line in script.splitlines() if line.lstrip().startswith("rsync $rsync_flags")] + self.assertEqual(len(rsync_commands), 1) + self.assertNotIn("--delete", rsync_commands[0]) + manifest = script.split("files=(", 1)[1].split(")", 1)[0].split() + self.assertEqual(len(manifest), len(set(manifest))) + for source, _ in PAGES.values(): + with self.subTest(source=source): + self.assertIn(source, manifest) + + def test_live_smoke_checks_all_press_locales_and_latest_support(self): + smoke = (ROOT / "scripts" / "check_app_discovery_live.sh").read_text(encoding="utf-8") + for code in ("en", "es", "pt-br", "ja", "id"): + self.assertIn("press-" + code + ".html", smoke) + self.assertIn("BrainBurst: Daily Trivia & 1v1 Quiz Battles | Android", smoke) + self.assertIn("Debate Me: AI Debate Practice App for Android | SK APPS", smoke) + self.assertNotIn("Debate Me – Free AI Debate App for Android | SK APPS", smoke) + def test_homepage_and_sitemap_discoverable(self): homepage = (ROOT / "index.html").read_text(encoding="utf-8") self.assertIn('href="/press/"', homepage)