SUL*_*CID 4 desktop-application dart windows-store-apps flutter
如何使用 Flutter 2.02 Beta 版将 Flutter 桌面应用上传到Windows 应用商店?我的桌面应用程序在 2.02 版本上运行良好。
我创建了一个 Windows 版本:
flutter build windows
Run Code Online (Sandbox Code Playgroud)
Fan*_*ier 13
首先,您需要一个付费开发者帐户。您将获得一个低于 20 美元的开发者帐户(一次性购买)。
\n然后,您可以使用 Flutter for Windows 构建您的应用程序。完成此步骤后,您可以使用xsix包为 Windows 应用商店构建.xsix文件。请参阅该包的文档。
\n将此包添加到dev_dependencies部分:
\ndev_dependencies:\n flutter_test:\n sdk: flutter\n msix: ^2.1.1\n
Run Code Online (Sandbox Code Playgroud)\n如果将.msix文件发布到 Windows 应用商店,则\xe2\x80\x99 不需要对其进行签名;Windows 应用商店会为您做到这一点。要为 Windows 应用商店生成.msix--store
文件,请使用该标志或添加到pubspec.yamlstore: true
文件中的 msix 配置部分。
笔记:
\n配置值publisher_display_name、identity_name、msix_version和publisher必须有效。您可以在 Windows 应用商店仪表板 \xe2\x86\x92产品\xe2\x86\x92产品标识中找到这些值。
\n有关详细信息,请参阅本教程:如何将 MSIX 包发布到 Microsoft Store
\n然后使用这些评论:
\nflutter clean\nflutter build windows\nflutter pub run msix:create --store\n
Run Code Online (Sandbox Code Playgroud)\n完成这些步骤后,您将获得用于上传到 Windows 应用商店的.msix文件。
\n 归档时间: |
|
查看次数: |
4137 次 |
最近记录: |