diff --git a/packages/eas-cli/src/build/android/prepareJob.ts b/packages/eas-cli/src/build/android/prepareJob.ts index 6ba375304b..5dbfdb3732 100644 --- a/packages/eas-cli/src/build/android/prepareJob.ts +++ b/packages/eas-cli/src/build/android/prepareJob.ts @@ -56,6 +56,15 @@ export async function prepareJobAsync( ? getCustomBuildConfigPathForJob(buildProfile.config) : undefined; + let buildMode; + if (ctx.repack) { + buildMode = BuildMode.REPACK; + } else if (buildProfile.config) { + buildMode = BuildMode.CUSTOM; + } else { + buildMode = BuildMode.BUILD; + } + const job: Android.Job = { type: ctx.workflow, platform: Platform.ANDROID, @@ -93,7 +102,7 @@ export async function prepareJobAsync( experimental: { prebuildCommand: buildProfile.prebuildCommand, }, - mode: buildProfile.config || ctx.repack ? BuildMode.CUSTOM : BuildMode.BUILD, + mode: buildMode, triggeredBy: BuildTrigger.EAS_CLI, ...(maybeCustomBuildConfigPath && { customBuildConfig: { diff --git a/packages/eas-cli/src/build/ios/prepareJob.ts b/packages/eas-cli/src/build/ios/prepareJob.ts index 1da13a2dff..314dd39d42 100644 --- a/packages/eas-cli/src/build/ios/prepareJob.ts +++ b/packages/eas-cli/src/build/ios/prepareJob.ts @@ -48,6 +48,15 @@ export async function prepareJobAsync( ? getCustomBuildConfigPathForJob(buildProfile.config) : undefined; + let buildMode; + if (ctx.repack) { + buildMode = BuildMode.REPACK; + } else if (buildProfile.config) { + buildMode = BuildMode.CUSTOM; + } else { + buildMode = BuildMode.BUILD; + } + const job: Ios.Job = { type: ctx.workflow, platform: Platform.IOS, @@ -88,7 +97,7 @@ export async function prepareJobAsync( experimental: { prebuildCommand: buildProfile.prebuildCommand, }, - mode: buildProfile.config || ctx.repack ? BuildMode.CUSTOM : BuildMode.BUILD, + mode: buildMode, triggeredBy: BuildTrigger.EAS_CLI, ...(maybeCustomBuildConfigPath && { customBuildConfig: {