diff --git a/Scripts/__pycache__/generate-mockuphone-assets.cpython-312.pyc b/Scripts/__pycache__/generate-mockuphone-assets.cpython-312.pyc deleted file mode 100644 index 9607c681..00000000 Binary files a/Scripts/__pycache__/generate-mockuphone-assets.cpython-312.pyc and /dev/null differ diff --git a/Scripts/generate-mockuphone-assets.py b/Scripts/generate-mockuphone-assets.py index 627c2572..9f4e35c8 100755 --- a/Scripts/generate-mockuphone-assets.py +++ b/Scripts/generate-mockuphone-assets.py @@ -1,8 +1,9 @@ #!/usr/bin/env python3 """Generate front-facing Termind device mockups using MockUPhone templates. -Raw screenshots are read-only inputs. Framed outputs are written alongside them -with a ``-framed.png`` suffix so the source captures remain available. +Raw screenshots are read-only inputs in Marketing/Screenshots/Captures. Framed +outputs are written to Marketing/Screenshots/DeviceFrames with a +``-framed.png`` suffix so source and derived marketing assets stay separate. """ from __future__ import annotations @@ -17,7 +18,8 @@ from PIL import Image, ImageDraw, ImageFilter, ImageOps REPOSITORY = Path(__file__).resolve().parents[1] -SCREENSHOTS = REPOSITORY / "LandingPage" / "public" / "screenshots" +CAPTURES = REPOSITORY / "Marketing" / "Screenshots" / "Captures" +DEVICE_FRAMES = REPOSITORY / "Marketing" / "Screenshots" / "DeviceFrames" CACHE = REPOSITORY / ".build" / "mockuphone-assets" MOCKUPHONE = "https://mockuphone.com/images" FEATURES = ("vault", "sftp", "ssh", "metrics", "assistant") @@ -156,8 +158,9 @@ def generate(source: Path, destination: Path, device: Device) -> None: def mobile_sources(device_name: str): for feature in FEATURES: for locale in LOCALES: - source = SCREENSHOTS / feature / f"{device_name}-{locale}.png" - yield source, source.with_name(f"{device_name}-{locale}-framed.png") + source = CAPTURES / feature / f"{device_name}-{locale}.png" + destination = DEVICE_FRAMES / feature / f"{device_name}-{locale}-framed.png" + yield source, destination def main() -> int: @@ -165,8 +168,8 @@ def main() -> int: *((source, destination, IPHONE) for source, destination in mobile_sources("iphone")), *((source, destination, IPAD) for source, destination in mobile_sources("ipad")), *(( - SCREENSHOTS / "workspace" / f"mac-{locale}.png", - SCREENSHOTS / "workspace" / f"mac-{locale}-framed.png", + CAPTURES / "workspace" / f"mac-{locale}.png", + DEVICE_FRAMES / "workspace" / f"mac-{locale}-framed.png", MAC, ) for locale in LOCALES), ] diff --git a/Scripts/run-mac-marketing-screenshots.sh b/Scripts/run-mac-marketing-screenshots.sh index dbba9b65..7415063b 100755 --- a/Scripts/run-mac-marketing-screenshots.sh +++ b/Scripts/run-mac-marketing-screenshots.sh @@ -8,7 +8,7 @@ repository_directory="${script_directory:h}" derived_data="$repository_directory/.build/mac-marketing-tests" products="$derived_data/Build/Products" backup_directory="$repository_directory/.build/screenshot-backups/$(date +%Y%m%d-%H%M%S)" -output_directory="$repository_directory/LandingPage/public/screenshots/workspace" +output_directory="$repository_directory/Marketing/Screenshots/Captures/workspace" xcodebuild \ -project "$repository_directory/Termind.xcodeproj" \ diff --git a/Scripts/run-mobile-marketing-screenshots.sh b/Scripts/run-mobile-marketing-screenshots.sh index 7bbeb590..9ddeee55 100755 --- a/Scripts/run-mobile-marketing-screenshots.sh +++ b/Scripts/run-mobile-marketing-screenshots.sh @@ -5,7 +5,7 @@ setopt typesetsilent script_directory="${0:A:h}" repository_directory="${script_directory:h}" -output_directory="$repository_directory/LandingPage/public/screenshots" +output_directory="$repository_directory/Marketing/Screenshots/Captures" derived_data="$repository_directory/.build/mobile-marketing-screenshots" marketing_xctestrun="$derived_data/Build/Products/Marketing-TFI.xctestrun" marketing_scenes="${TERMIND_MARKETING_SCENES:-}"