|
47 | 47 | description: 'Build configuration' |
48 | 48 | required: false |
49 | 49 | type: string |
50 | | - default: 'Debug' |
| 50 | + default: 'Release' |
51 | 51 | platform-version: |
52 | 52 | description: 'iOS platform version for simulator' |
53 | 53 | required: false |
@@ -153,11 +153,34 @@ jobs: |
153 | 153 | echo "version=$VERSION" >> $GITHUB_OUTPUT |
154 | 154 | echo "📱 Building version $VERSION" |
155 | 155 |
|
| 156 | + - name: Configure build environment |
| 157 | + working-directory: ./app |
| 158 | + run: | |
| 159 | + echo "🔧 Configuring build environment for ${{ env.BUILD_MODE }} mode..." |
| 160 | + |
| 161 | + if [ "${{ env.BUILD_MODE }}" = "Release" ]; then |
| 162 | + echo "🎯 Configuring for STANDALONE PRODUCTION app" |
| 163 | + # Create standalone app configuration |
| 164 | + echo "EAS_NO_VCS=1" >> .env |
| 165 | + echo "EXPO_NO_DOTENV=1" >> .env |
| 166 | + else |
| 167 | + echo "🛠️ Configuring for DEVELOPMENT app with Expo Dev Tools" |
| 168 | + fi |
| 169 | +
|
156 | 170 | - name: Expo prebuild (generate native iOS project) |
157 | 171 | working-directory: ./app |
158 | 172 | run: | |
159 | | - echo "📦 Generating native iOS project with Expo (includes CocoaPods)..." |
160 | | - npx expo prebuild --platform ios --clean |
| 173 | + echo "📦 Generating native iOS project with Expo..." |
| 174 | + |
| 175 | + if [ "${{ env.BUILD_MODE }}" = "Release" ]; then |
| 176 | + echo "🎯 Building standalone app (production-ready)" |
| 177 | + # Use production prebuild without dev client |
| 178 | + npx expo prebuild --platform ios --clean |
| 179 | + else |
| 180 | + echo "🛠️ Building development app (with dev tools)" |
| 181 | + npx expo prebuild --platform ios --clean |
| 182 | + fi |
| 183 | + |
161 | 184 | echo "✅ Native iOS project generated with CocoaPods installed" |
162 | 185 |
|
163 | 186 | - name: Build iOS app for Simulator |
|
0 commit comments