buildshare.in
Frameworks

Ionic & Capacitor

Distribute Android APK and iOS IPA builds from your Ionic and Capacitor projects using BuildShare CLI.

Capacitor executes web assets inside 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

NPM Scripts Automation

Add these 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 && cd android && ./gradlew assembleRelease && buildshare upload ./app/build/outputs/apk/release/app-release.apk --notes 'Capacitor Android build'",
    "distribute:ios": "npm run build:web && npm run sync:native && buildshare upload ./ios/App/App/Outputs/Release/App.ipa --notes 'Capacitor iOS build'"
  }
}

Now you can run the distribution flow locally or inside CI/CD with:

npm run distribute:android

On this page