local-build
Installation
SKILL.md
Local Build Workflow (APK and .app)
Overview
Generate two shell scripts that build release artifacts for an Expo / React Native project using the platform toolchains directly:
scripts/build-android.sh→ runs./gradlew assembleReleaseand copies the APK intobuilds/scripts/build-ios.sh→ runsxcodebuildfor the iOS Simulator and copies the.appintobuilds/
Both scripts replace the previous artifact on each run, so the output path is always predictable.
Why this exists: Debug builds on an Expo project include expo-dev-client and launch the "Development Servers" picker instead of the app UI. For e2e runs, teammate previews, or real device installs, you need a Release build, and that's what these scripts produce.
Step 0: Confirm the project is a React Native / Expo app
Before doing anything else, verify the current directory is an Expo/React Native project:
- Check for
package.jsonwithexpoindependencies. - Check for
app.jsonorapp.config.ts/app.config.js.