diff --git a/eas.json b/eas.json index 16e3e6e6e..6d00817c6 100644 --- a/eas.json +++ b/eas.json @@ -46,6 +46,18 @@ "resourceClass": "medium" } }, + "preview-android": { + "extends": "preview", + "env": { + "EXPO_PLATFORM": "android" + } + }, + "preview-ios": { + "extends": "preview", + "env": { + "EXPO_PLATFORM": "ios" + } + }, "ios-simulator": { "extends": "development", "developmentClient": true, diff --git a/scripts/build/build.js b/scripts/build/build.js index 3bd21f7e8..35844e633 100644 --- a/scripts/build/build.js +++ b/scripts/build/build.js @@ -77,7 +77,7 @@ const build = async () => { const buildCommand = "eas"; const buildProfile = env === "production" || env === "preview" - ? `${env}${buildInternalProduction ? "-internal" : ""}` + ? `${env}-${platform}${buildInternalProduction ? "-internal" : ""}` : env; const buildArgs = [ "build",