Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/content/docs/code-push/patch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ shorebird patch ios
shorebird patch macos
```

</TabItem>

<TabItem value="patch-command-windows" label="Windows (beta)">

```
shorebird patch windows
```

</TabItem>
</Tabs>

Expand Down
66 changes: 66 additions & 0 deletions src/content/docs/code-push/release.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,72 @@ shorebird release macos --flutter-version 3.24.5

</TabItem>

<TabItem value="release-windows" label="Windows (beta)">

Create a Windows release by running the following command:

`shorebird release windows`

Example output:

```
$ shorebird release windows
✓ Fetching apps (0.3s)
✓ Building Windows app with Flutter 3.27.1 (1e0e5760ee) (18.3s)
✓ Fetching releases (0.1s)

🚀 Ready to create a new release!

📱 App: sample (d0cf1d8f-e741-4f5d-b280-b794000df1cd)
📦 Release Version: 1.0.0+1
🕹️ Platform: windows
🐦 Flutter Version: 3.27.1 (1e0e5760ee)

Would you like to continue? (y/N) Yes
✓ Fetching releases (0.1s)
✓ Creating release (0.3s)
✓ Updating release status (0.1s)
✓ Uploading artifacts (3.5s)
✓ Updating release status (1.7s)

✅ Published Release 1.0.13+2!

Windows executable created at build/windows/x64/runner/Release

To create a patch for this release, run shorebird patch --platforms=windows --release-version=1.0.0+1

Note: shorebird patch --platforms=windows without the --release-version option will patch the current version of the app.
```

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

```bash
shorebird release windows --target ./lib/main_development.dart --flavor development
```

:::note
`shorebird release` 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
release android -- --dart-define="foo=bar"` will define the `"foo"` environment
variable inside Dart as you might have done with `flutter build` directly. In
Powershell the `--` separator must be quoted: `'--'`.
:::

:::note
By default `shorebird release` uses the Flutter version bundled within the shorebird installation.

That version can be checked by running `shorebird doctor`
:::

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

```
shorebird release windows --flutter-version 3.27.1
```

</TabItem>

</Tabs>

## Manage Releases
Expand Down
16 changes: 16 additions & 0 deletions src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ shorebird release ios
shorebird release macos
```

</TabItem>

<TabItem value="windows" label="Windows (beta)">

```sh
shorebird release windows
```

</TabItem>
</Tabs>

Expand Down Expand Up @@ -293,6 +301,14 @@ shorebird patch macos

</TabItem>

<TabItem value="indows" label="Windows (beta)">

```sh
shorebird patch windows
```

</TabItem>

</Tabs>

### See the patch in action
Expand Down
Loading