Create a Patch
Once you have published a release of your app, you can push updates using one
of the shorebird patch
commands.
shorebird patch android
shorebird patch ios
This will do several things:
- Builds the artifacts for the update.
- Downloads the corresponding release artifacts.
- Generates a patch using the diff between the release and the current changes.
- Uploads the patch artifacts to the Shorebird backend
- Promotes the patch to the stable channel.
Example output:
$ shorebird patch android✓ Building patch (3.0s)✓ Fetching apps (0.2s)✓ Detecting release version (0.3s)✓ Fetching release (77ms)✓ Fetching Flutter revision (15ms)✓ Fetching release artifacts (0.3s)✓ Downloading release artifacts (1.9s)✓ Creating artifacts (4.1s)
🚀 Ready to publish a new patch!
📱 App: My App (61fc9c16)📦 Release Version: 0.1.0+1📺 Channel: stable🕹️ Platform: android [arm64 (166.20 KB), arm32 (161.78 KB), x86_64 (161.51 KB)]
Would you like to continue? (y/N) Yes✓ Creating patch (93ms)✓ Uploading artifacts (1.5s)✓ Fetching channels (86ms)✓ Promoting patch to stable (78ms)
✅ Published Patch!
By default, this uses the release version that the app is currently on. If you
want to patch a different release version, you can use the --release-version
option. For example:
shorebird patch android --release-version 0.1.0+1
If your application supports flavors or multiple release targets, you can specify the flavor and target using the --flavor
and --target
options:
shorebird patch [android|ios] --target lib/main_development.dart --flavor development