DEV Community

Rody Davis
Rody Davis

Posted on • Originally published at rodydavis.com on

Automate Flutter App Releases

TLDR You can find the script here.

Make your life easier and automate your builds to beta and production!

What you need #

Initial Setup #

  • Download this file
  • Put it at the root level of your flutter project
  • Open the terminal and navigate to your project location
  • Enter this command: chmod +x release.sh

Usage #

Now you can call this script!

  • For beta: ./release.sh beta
  • For production: ./release.sh release

Overview #

  • Bump the version numbers if you are using the version in the pubspec.yaml
  • Release the apps with Fastlane
  • Format all Dart Files
  • Clean Project
  • Rebuild classes
  • Add commit messages
  • Updates Cocoa Pods

Top comments (0)