flutterdartwindows-store-appsdesktop-application

How to publish a Flutter desktop application to Windows Store


How can I upload a Flutter desktop application in Windows Store with the beta version of Flutter 2.02? My desktop application is working fine with version 2.02.

I created a windows build with:

flutter build windows

Solution

  • At first, you need a paid developer account. You get a developer account under US$20 (one-time purchases).

    Then you build your app with Flutter for Windows. And after this step, you can use the xsix package to build a .xsix file for the Windows Store. Refer to the documentation for the package.

    Add this package to the dev_dependencies part:

    dev_dependencies:
      flutter_test:
        sdk: flutter
      msix: ^2.1.1
    

    If you publish your .msix file to Windows Store, you don’t need to sign it; Windows Store does it for you. To generate a .msix file for Windows Store, use the --store flag or add store: true in the msix configuration section in your pubspec.yaml file.

    Note:

    the configuration values publisher_display_name, identity_name, msix_version, and publisher must be valid. You can find those values in your Windows Store Dashboard → ProductProduct identity.

    For more information, please see this tutorial: How to publish your MSIX package to the Microsoft Store

    And then use these comments:

    flutter clean
    flutter build windows
    flutter pub run msix:create --store
    

    After these steps, you get the .msix file for uploading to the Windows Store.