Launchbay

Settings

Build and submit profiles in eas.json or launchbay.toml, plus the environment variables the daemon reads.

Launchbay reads an app's settings from one file at its root:

  • launchbay.toml, if the app has one. This is the place for apps without Expo.
  • eas.json otherwise, the file Expo apps already have. Field names match EAS, so an existing eas.json works as it is.

Both have the same shape: a build table and a submit table, each holding named profiles. A profile can extends another. When an app has both files, launchbay.toml wins and eas.json is ignored. Without either, every profile is the defaults.

[build.production]
env = { API_URL = "https://api.example.com" }
autoIncrement = true
ios = { scheme = "MyApp" }

[build.preview]
extends = "production"
distribution = "internal"
android = { buildType = "apk" }

[submit.production]
ios = { ascApiKeyId = "ABC123", ascApiKeyIssuerId = "00000000-0000-0000-0000-000000000000" }
android = { serviceAccountKeyPath = "play.json", track = "internal" }

Build profiles

Chosen with launchbay build --profile (default production). Fields Launchbay doesn't list here are ignored.

FieldWhat it does
extendsStart from another profile and override it.
envEnvironment variables for the build (strings). Builds also get EXPO_RELEASE=1.
distributioninternal exports an ad hoc build (iOS) instead of App Store.
developmentClientWith distribution: internal, a development export, and a Debug build unless overridden.
channelEAS Update channel: the build asks expo-updates for this channel's updates (expo-channel-name header), as on EAS. Needs expo-updates configured.
autoIncrementBuild number one past the highest the store has. ios.autoIncrement and android.autoIncrement override it per platform.
ios.simulatorBuild a simulator .app, no signing.
ios.buildConfigurationXcode configuration, default Release.
ios.schemeXcode scheme, default the app's own.
ios.enterpriseProvisioninguniversal exports with an enterprise profile.
android.buildTypeapk builds an APK instead of an AAB.
android.gradleCommandGradle task instead of :app:bundleRelease.

Submit profiles

Chosen with --profile on submit and promote (default production), and used for autoIncrement and store listings too.

FieldWhat it does
ios.ascApiKeyId, ios.ascApiKeyIssuerIdApp Store Connect API key.
ios.ascApiKeyPathThe key's .p8, relative to the app. Without it, ~/.appstoreconnect/private_keys/AuthKey_ID.p8.
ios.ascAppIdThe app's Apple ID. Saves a lookup by bundle id.
ios.appleTeamIdTeam for signing, when the keychain has more than one.
android.serviceAccountKeyPathGoogle Play service account JSON, relative to the app.
android.trackTrack uploads go to, default internal.
android.releaseStatuscompleted, inProgress, draft or halted.
android.rolloutStaged rollout fraction for uploads.
android.changesNotSentForReviewCommit edits without sending them for review.
android.applicationIdPackage name, instead of expo.android.package from app.json.

Environment variables

The daemon reads these, and they win over the file. launchbay service install copies every LAUNCHBAY_* variable from your shell into the launchd agent, so rerun it after changing them.

VariableWhat it does
LAUNCHBAY_ASC_KEY_ID, LAUNCHBAY_ASC_ISSUER_ID, LAUNCHBAY_ASC_KEY_PATHApp Store Connect API key.
LAUNCHBAY_APPLE_TEAM_IDApple team for signing.
LAUNCHBAY_PLAY_SERVICE_ACCOUNTGoogle Play service account JSON.
LAUNCHBAY_ANDROID_KEYSTORE, LAUNCHBAY_ANDROID_KEYSTORE_PASSWORD, LAUNCHBAY_ANDROID_KEY_ALIAS, LAUNCHBAY_ANDROID_KEY_PASSWORDUpload key for apps without a credentials.json. LAUNCHBAY_ANDROID_KEY_PASSWORD defaults to the keystore password.
LAUNCHBAY_HOMEWhere state lives, default ~/.launchbay.
LAUNCHBAY_PORTDaemon port on 127.0.0.1, default 7717.

Secrets

Values that can't go in git, such as a Sentry auth token, live in your login keychain instead, one set per app. Every build of that app gets them as environment variables, filling in anything the profile's env doesn't set.

launchbay secret set SENTRY_AUTH_TOKEN          # prompts for the value without echoing it
pbpaste | launchbay secret set SENTRY_AUTH_TOKEN # or pipe it in
launchbay secret ls                             # names only, never values
launchbay secret rm SENTRY_AUTH_TOKEN

Run them in the app's folder, or pass --project DIR. A value is stored as a keychain item (service launchbay) and handed to security on stdin, so it never shows in a process list; only the names are written to disk, in ~/.launchbay/secrets.json. Values are text.

credentials.json

Android builds sign with the upload key from the app's credentials.json, the layout eas-cli credentials writes:

{
  "android": {
    "keystore": {
      "keystorePath": "keystores/upload.jks",
      "keystorePassword": "...",
      "keyAlias": "upload",
      "keyPassword": "..."
    }
  }
}

Keep it out of git. Without it, the LAUNCHBAY_ANDROID_* variables above are used, and without those, the project's own release config.

launchbay.json

Store screenshot capture reads its own launchbay.json; see Store screenshots.

On this page