@@ -270,6 +270,72 @@ shorebird release macos --flutter-version 3.24.5
270270
271271</TabItem >
272272
273+ <TabItem value = " release-windows" label = " Windows (beta)" >
274+
275+ Create a Windows release by running the following command:
276+
277+ ` shorebird release windows `
278+
279+ Example output:
280+
281+ ```
282+ $ shorebird release windows
283+ ✓ Fetching apps (0.3s)
284+ ✓ Building Windows app with Flutter 3.27.1 (1e0e5760ee) (18.3s)
285+ ✓ Fetching releases (0.1s)
286+
287+ 🚀 Ready to create a new release!
288+
289+ 📱 App: sample (d0cf1d8f-e741-4f5d-b280-b794000df1cd)
290+ 📦 Release Version: 1.0.0+1
291+ 🕹️ Platform: windows
292+ 🐦 Flutter Version: 3.27.1 (1e0e5760ee)
293+
294+ Would you like to continue? (y/N) Yes
295+ ✓ Fetching releases (0.1s)
296+ ✓ Creating release (0.3s)
297+ ✓ Updating release status (0.1s)
298+ ✓ Uploading artifacts (3.5s)
299+ ✓ Updating release status (1.7s)
300+
301+ ✅ Published Release 1.0.13+2!
302+
303+ Windows executable created at build/windows/x64/runner/Release
304+
305+ To create a patch for this release, run shorebird patch --platforms=windows --release-version=1.0.0+1
306+
307+ Note: shorebird patch --platforms=windows without the --release-version option will patch the current version of the app.
308+ ```
309+
310+ If your application supports flavors or multiple release targets, you can specify the flavor and target using the ` --flavor ` and ` --target ` options:
311+
312+ ``` bash
313+ shorebird release windows --target ./lib/main_development.dart --flavor development
314+ ```
315+
316+ :::note
317+ ` shorebird release ` wraps ` flutter build ` and can take any argument `flutter
318+ build` can. To pass arguments to the underlying ` flutter build` you need to put
319+ ` flutter build ` arguments after a ` -- ` separator. For example: `shorebird
320+ release android -- --dart-define="foo=bar"` will define the ` "foo"` environment
321+ variable inside Dart as you might have done with ` flutter build ` directly. In
322+ Powershell the ` -- ` separator must be quoted: ` '--' ` .
323+ :::
324+
325+ :::note
326+ By default ` shorebird release ` uses the Flutter version bundled within the shorebird installation.
327+
328+ That version can be checked by running ` shorebird doctor `
329+ :::
330+
331+ To release with a different Flutter version, you can specify the version using the ` --flutter-version ` flag.
332+
333+ ```
334+ shorebird release windows --flutter-version 3.27.1
335+ ```
336+
337+ </TabItem >
338+
273339</Tabs >
274340
275341## Manage Releases
0 commit comments