release-app
Build, sign, and submit app to App Store and Google Play — fully automated
- License 许可
- Apache-2.0
- 所属仓库
- bes-dev/etnamute
- 最近更新
- 2026-03-27
- Stars
- ★ 12
- Forks
- 1
01 前言 Front Matter
- name
- release-app
- description
- Build, sign, and submit app to App Store and Google Play — fully automated
- disable-model-invocation
- true
03 SKILL.md 正文
Release an app to stores. Single command: build, sign, upload, submit for review.
One-time setup required (see FIRST-TIME SETUP below). After that, /release-app handles everything.
App: $ARGUMENTS
PRE-FLIGHT CHECKS
.env.deployexists —test -f apps/<slug>/.env.deploy. Do NOT read contents.- Market materials exist — check
apps/<slug>/aso/,apps/<slug>/marketing/,apps/<slug>/research/all exist. If not → tell user to run/market-appfirst and stop. - Tools installed — check with
which:fastlane,xcrun(iOS),java(Android) - App records exist — ask user: "Have you created the app in App Store Connect and Google Play Console?" If no → show FIRST-TIME SETUP and stop.
If .env.deploy missing → generate .env.deploy.example and stop.
EXECUTION
Step 1: Generate fastlane config
Create apps/<slug>/fastlane/ with:
Appfile — from app.config.js + env:
for_platform :ios do
app_identifier(ENV["APP_IDENTIFIER"])
team_id(ENV["TEAM_ID"])
itc_team_id(ENV["ITC_TEAM_ID"])
end
for_platform :android do
json_key_file(ENV["SUPPLY_JSON_KEY"])
package_name(ENV["ANDROID_PACKAGE_NAME"])
end
Fastfile — generate the production Fastfile with:
iOS deploy lane:
- Load API key from env (base64-encoded .p8)
- Query latest build number from App Store Connect, increment
- Create temporary keychain, import base64 cert + provisioning profile from env
- Run
cocoapodsfor ios/Podfile - Build IPA with manual signing via xcargs (don't mutate .xcodeproj)
- Upload metadata + screenshots + IPA via
deliver - Submit for review with compliance flags pre-answered
- Cleanup: delete temporary keychain and decoded files
Android deploy lane:
- Decode keystore from base64 env to temp file
- Read and increment versionCode in build.gradle
- Build AAB with injected signing properties
- Upload to Google Play via
supply - Cleanup: delete temp keystore
Combined deploy_all lane that runs both sequentially.
Key Fastfile details:
- iOS signing: temporary keychain +
xcargs: "CODE_SIGN_STYLE='Manual'"— never mutate .xcodeproj - iOS compliance:
submission_informationhash withexport_compliance_uses_encryption: false - iOS: always include
release_notes.txt(required for submit_for_review) - iOS: set
precheck_include_in_app_purchases: falsewhen using API keys - Android: use
changes_not_sent_for_review: trueto avoid common supply error - Android: AAB format mandatory (not APK)
- Build numbers: auto-increment from store (iOS:
app_store_build_number, Android: parse build.gradle) - Error retry: wrap deliver/supply in retry block (3 attempts, 30s delay)
Step 2: Convert ASO to fastlane metadata
Read apps/<slug>/aso/ and generate:
iOS metadata (fastlane/metadata/en-US/):
| Source | Target |
|---|---|
aso/ios/title.txt |
name.txt |
aso/ios/subtitle.txt |
subtitle.txt |
aso/ios/keywords.txt |
keywords.txt |
aso/ios/description.txt |
description.txt |
| privacy policy URL | privacy_url.txt |
| version change notes | release_notes.txt |
Android metadata (fastlane/metadata/android/en-US/):
| Source | Target |
|---|---|
aso/android/title.txt |
title.txt |
aso/android/short_description.txt |
short_description.txt |
aso/android/full_description.txt |
full_description.txt |
| version change notes | changelogs/default.txt |
Also generate: copyright.txt, primary_category.txt from PRD.
Step 3: Capture screenshots (if Maestro installed)
Generate .maestro/screenshots.yaml from PRD key screens (§6).
Run on correct simulator for required sizes:
- iOS: iPhone 16 Pro Max simulator (1320×2868) — mandatory base size
- Android: 1080×1920 recommended
maestro test --test-output-dir ./screenshots/raw .maestro/screenshots.yaml
Map output to fastlane directory: fastlane/screenshots/en-US/<Device>-<Name>.png
Skip if Maestro not installed — note in output that screenshots need manual capture.
Step 4: Prebuild native projects
npx expo prebuild --clean
Add ITSAppUsesNonExemptEncryption = NO to ios/<AppName>/Info.plist if not present (skips encryption compliance question).
Step 5: Build and submit
Ask user confirmation via AskUserQuestion:
question: "Ready to build and submit to stores?"
header: "Release"
options:
- label: "Both platforms"
description: "Build and submit iOS + Android"
- label: "iOS only"
description: "Build and submit to App Store only"
- label: "Android only"
description: "Build and submit to Google Play only"
- label: "Build only (don't submit)"
description: "Build binaries but don't upload to stores"
Then run:
cd apps/<slug>
bundle exec fastlane deploy_all --env deploy
# or: bundle exec fastlane ios deploy --env deploy
# or: bundle exec fastlane android deploy --env deploy
Step 6: Report
## Release Complete
### iOS
- Build number: <N>
- Status: Submitted for review
- Phased release: enabled
- Estimated review: 1-3 days
### Android
- Version code: <N>
- Track: production
- Status: Under review
### Next steps
- Monitor review status in App Store Connect / Play Console
- iOS changes to title/subtitle take effect after review approval
- Google Play metadata changes take 4-8 weeks for full indexing
.env.deploy.example
# ──── iOS ────
APP_IDENTIFIER=com.example.myapp
TEAM_ID=ABCDE12345
ITC_TEAM_ID=18742801
XCODE_SCHEME=MyApp
# App Store Connect API Key
APP_STORE_CONNECT_API_KEY_KEY_ID=
APP_STORE_CONNECT_API_KEY_ISSUER_ID=
APP_STORE_CONNECT_API_KEY_KEY= # base64-encoded .p8 content
APP_STORE_CONNECT_API_KEY_IS_KEY_CONTENT_BASE64=true
# Code Signing
CERTIFICATE_BASE64= # base64-encoded .p12
CERT_PASSWORD=
PROVISIONING_PROFILE_BASE64= # base64-encoded .mobileprovision
PROVISIONING_PROFILE_NAME= # profile name as shown in Xcode
KEYCHAIN_PASSWORD=temp_keychain_pass
# ──── Android ────
ANDROID_PACKAGE_NAME=com.example.myapp
SUPPLY_JSON_KEY=fastlane/play-store-key.json
# Signing
ANDROID_KEYSTORE_BASE64= # base64-encoded .keystore
ANDROID_KEYSTORE_PASSWORD=
ANDROID_KEY_ALIAS=
ANDROID_KEY_PASSWORD=
FIRST-TIME SETUP
Show this to the user if they haven't set up before. These steps are manual and done once.
Apple (≈15 min)
- Enroll in Apple Developer Program ($99/year) at developer.apple.com
- Create App Store Connect API Key:
- App Store Connect → Users → Integrations → App Store Connect API
- Create Team Key with App Manager role
- Note Key ID + Issuer ID, download .p8 file (one-time download!)
- Base64 encode:
base64 -i AuthKey_XXXXX.p8
- Create app record in App Store Connect (bundle ID, name, SKU)
- Create Distribution certificate in Developer Portal → export as .p12
- Base64 encode:
base64 -i Distribution.p12
- Base64 encode:
- Create App Store provisioning profile → download
- Base64 encode:
base64 -i AppStore.mobileprovision
- Base64 encode:
- Set App Privacy Details in App Store Connect (cannot be automated)
- Add all values to
.env.deploy
Google Play (≈15 min)
- Register Google Play Developer account ($25 one-time)
- Create app in Play Console (All apps → Create app)
- Complete App Content sections: privacy policy, content rating (IARC), data safety, target audience
- Upload first AAB manually to internal testing track (required — API cannot do first upload)
- Create Google Cloud service account:
- Cloud Console → enable "Google Play Android Developer API"
- IAM → Service Accounts → Create → download JSON key
- Link service account in Play Console → Users & Permissions → Invite → paste email → Admin permissions
- Generate upload keystore:
keytool -genkeypair -v -storetype PKCS12 -keystore upload.keystore -alias my-key -keyalg RSA -keysize 2048 -validity 10000- Base64 encode:
base64 -i upload.keystore
- Base64 encode:
- Add all values to
.env.deploy
ERROR HANDLING
| Error | Cause | Fix |
|---|---|---|
.env.deploy missing |
Not configured | Generate example, show FIRST-TIME SETUP |
| "No suitable application records" | Wrong bundle ID or team | Check APP_IDENTIFIER and ITC_TEAM_ID |
| "Redundant Binary Upload" | Duplicate build number | Auto-handled by build number auto-increment |
| "Missing attribute 'whatsNew'" | No release notes | Always generate release_notes.txt |
| "Changes cannot be sent for review" (Android) | App in review state | Auto-handled by changes_not_sent_for_review: true |
| "applicationNotFound" (Android) | No first manual upload | Tell user to upload first AAB via Play Console |
| Certificate expired | Annual expiration | Tell user to renew in Developer Portal |
WHAT CANNOT BE AUTOMATED
- App record creation in App Store Connect (fastlane
producedoesn't support API keys) - First AAB upload to Google Play (API limitation)
- App Privacy Details / Nutrition Labels in ASC
- Content rating questionnaire (IARC) in Play Console
- Data safety form in Play Console
- Certificate/profile renewal (annual, manual in Developer Portal)
04 同仓库更多 Skills
visual-review
Read screenshots and verify UI against DESIGN.md, reference mockups, and quality checklist
testing
Full QA procedure — interaction map, unit tests, Maestro flows, visual review
test-app
Run full QA — interaction map, unit tests, Maestro UI tests, visual review
spec-app
Generate PRD through discovery interview and market research — no code
react-native
暂无简介
mobile-ui
暂无简介