Skip to content

Create a Release

In order to start pushing updates, you will need to create a release.

Creating a release builds and submits your app to Patchwing. Patchwing saves the compiled Dart code from your application in order to make updates smaller in size.

Create an Android release by running the following command:

patchwing release android

Example output:

$ patchwing release android
✓ Building release (9.6s)
✓ Fetching apps (0.2s)
✓ Detecting release version (0.2s)
✓ Fetching releases (68ms)

🚀 Ready to create a new release!

📱 App: new_flutter_app (7a29188a-9363-426a-9a36-74a5e166373d)
📦 Release Version: 1.0.0+1
🕹️  Platform: android (arm64, arm32, x86_64)

Would you like to continue? (y/N) Yes
✓ Fetching Flutter revision (30ms)
✓ Updating release status (67ms)
✓ Creating artifacts (2.8s)
✓ Updating release status (62ms)

✅ Published Release!

Your next step is to upload the app bundle to the Play Store.
build/app/outputs/bundle/release/app-release.aab

See the following link for more information:
https://support.google.com/googleplay/android-developer/answer/9859152?hl=en

If your application supports flavors or multiple release targets, you can specify the flavor and target using the --flavor and --target options:

patchwing release android --target ./lib/main_development.dart --flavor development

By default, patchwing release android builds an AppBundle (.aab). If you would like to also generate an Android Package Kit (.apk), use the following command:

patchwing release android --artifact apk

To release with a different Flutter version, you can specify the version using the --flutter-version flag.

patchwing release android --flutter-version 3.44.0

You can view all of your releases for your current app (as defined by your patchwing.yaml) on the Patchwing console.

You can delete a release for your app (as defined by your patchwing.yaml) on the Patchwing console.

  1. Navigate to the application
  2. Click on the release you wish to delete
  3. Go to the “Settings” tab at the top of the page
  4. In the “Danger Zone” there will be a “Delete” button

In order to complete the delete request you do need to confirm which binaries you would like to be deleted. You can easily delete all releases or pick by platform. The list of platforms shown is based on the binaries that are uploaded for that release.

Release Delete Platform Confirm Dialog in Patchwing Console

A common question we get asked is: Does Patchwing require publishing to the App Store or Play Store?

No. Patchwing works fine with side-loading and mobile device management (MDM) on Android. We’ve not had anyone try Patchwing with iOS Developer Enterprise program, but we expect it to work just as well.

To build Patchwing for distribution via APK (e.g. side-loading), use the --artifact flag with the patchwing release command. For example:

patchwing release android --artifact=apk

That will produce both .apk and .aab files. You can distribute either or both as needed.

Create a Patch Push over-the-air updates to your published release.
Play Store Guide Learn how to submit your release to the Google Play Store.
App Store Guide Learn how to submit your release to the Apple App Store.