Frameworks
Ionic & Capacitor
Distribute Android APK/AAB and iOS IPA builds from your Ionic and Capacitor projects.
⚡ Ionic & Capacitor
Capacitor executes web assets inside highly optimized native Android and iOS wrapper apps. You first build your modern web front-end assets, sync them to the native platforms, and then invoke native compiling tasks.
📁 Typical Build Paths
- Android APK:
./android/app/build/outputs/apk/release/app-release.apk - iOS IPA:
./ios/App/App/Outputs/Release/App.ipa
⚙️ Setup & Link
Initialize BuildShare inside the main root folder of your project:
buildshare init \
--project-name "My Ionic App" \
--package-name "com.example.ionicapp" \
--android-path "./android/app/build/outputs/apk/release/app-release.apk" \
--ios-path "./ios/App/App/Outputs/Release/App.ipa"🤖 NPM Scripts Automation
Add these robust scripts to your project's package.json to compile and distribute updates in one simple task:
{
"scripts": {
"build:web": "ionic build",
"sync:native": "npx cap sync",
"distribute:android": "npm run build:web && npm run sync:native && npx cap open android --run-gradlew assembleRelease && buildshare upload android --no-confirm"
}
}Now you can run the distribution flow locally or inside CI/CD with:
npm run distribute:android