Launchbay

Store screenshots

Capture store screenshots from simulators, emulators or the web build.

launchbay screenshots [--platform ios|android|all] [--locale en-US] (or Capture screenshots in the app's Store listings) captures the store screenshots instead of you taking them by hand, and saves them as an edited listing snapshot to review and push like any other edit. The app's launchbay.json says what to capture:

{
  "screenshots": {
    "profile": "screenshots",
    "appearance": "dark",
    "routes": ["/", "/remote?mode=keypad", "/settings"],
    "ios": { "APP_IPHONE_67": "iPhone 17 Pro Max", "APP_IPAD_PRO_3GEN_129": "iPad Pro 13-inch (M5)" },
    "android": { "phoneScreenshots": "Medium_Phone_API_35" }
  }
}

Routes are Expo Router paths, and each set (the listing's screenshot sets) names the simulator or AVD to capture it on. The job builds profile (an iOS simulator app, an APK) with launchbay's own build, so that profile's env can switch on a screenshot mode with fake data (Helm's EXPO_PUBLIC_STORE_SCREENSHOTS makes it look connected to a TV). Then for each device it boots it if needed, sets a 9:41 status bar with full battery and signal (simctl status_bar, Android's demo mode), installs the build, opens each route, waits wait seconds (default 5) and captures. A missing simulator or AVD fails with the list of the ones there are; launchbay never creates them. Sizes App Store Connect would refuse are flagged in the log.

How a route is opened: Android gets a deep link (<expo.scheme>://<path>). iOS asks for confirmation before opening a deep link sent by simctl openurl, which nothing can answer, so the app is launched with -route <path> instead. That lands in NSUserDefaults, so the app's screenshot build reads it with React Native's Settings.get('route') and navigates there (see Helm's src/lib/screenshots.ts).

"backend": "web" needs no Xcode or emulator (so it runs on Linux too): it runs expo export --platform web (expo.web.output must be static or single), serves it locally and captures each route in headless Chrome at each set's store size, framed at the device's CSS width. The look is close to native but not the same (browser text rendering, no status bar), and the app has to build for web, native modules stubbed.