Create a Patch
Once you have published a release of your app, you can push updates using one
of the shorebird patch
commands.
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:
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:
If your application supports flavors or multiple release targets, you can specify the flavor and target using the --flavor
and --target
options:
shorebird patch
wraps flutter build
and can take any argument
flutter build
can. To pass arguments to the underlying flutter build
you
need to put flutter build
arguments after a --
separator. For example:
shorebird patch android -- --dart-define="foo=bar"
will define the "foo"
environment
variable inside Dart as you might have done with flutter build
directly.