【问题标题】:How to publish Flutter app on Microsoft Store?如何在 Microsoft Store 上发布 Flutter 应用?
【发布时间】:2021-02-13 13:31:58
【问题描述】:

我已经为 Windows 构建了应用程序。它以桌面模式运行。

我开了微软开发者账号。

如何将 Flutter 应用(Windows 版本)发布到 Microsoft Store?从 AndroidStudioProjects 上传到 Microsoft 合作伙伴中心的文件是什么(或如何构建)?

非常感谢!

【问题讨论】:

    标签: android-studio flutter uwp desktop


    【解决方案1】:

    问题是您无法将 .exe 文件上传到您需要的 Windows 应用商店,例如 .xsix 文件。构建 .xsix 文件非常简单:

    您使用 Flutter for Windows 构建您的应用,在此步骤之后,您可以使用 xsix 包为 Windows 应用商店构建一个 xsix 文件。您可以在此处找到该软件包的文档:https://pub.dev/documentation/msix/latest/

    将此包添加到 dev_dependencies:

    dev_dependencies:
      flutter_test:
        sdk: flutter
      msix: ^2.1.1
    

    然后使用这些 cmets:

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

    执行此步骤后,您将获得用于上传到 Windows 应用商店的 msix 文件。

    【讨论】:

      猜你喜欢
      • 2018-12-30
      • 2022-10-22
      • 2022-10-14
      • 2019-01-18
      • 1970-01-01
      • 2022-10-16
      • 2021-02-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多