[英]How to publish flutter desktop app to windows store
如何使用 flutter 2.02 測試版在 windows 商店中上傳 flutter 桌面應用程序。 我的桌面應用程序在 2.02 版上運行良好。
創建 windows 構建
flutter build windows
首先,你需要一個付費開發者賬號: https://developer.microsoft.com/de-de/store/register/
您將獲得一個低於 20 美元的開發帳戶。 (一次性購買)
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. 您可以在此處找到 package 的文檔: https://pub.dev/documentation/msix/latest/
將此 package 添加到 dev_dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
msix: ^2.1.1
"If you publish your msix to Windows Store you dont need to sign it, Windows Store does it for you. To generate msix file for Windows Store use the --store flag or add store: true in msix configuration sction in your pubspec.yaml .
注意:配置值 publisher_display_name、identity_name、msix_version、publisher 必須有效,您可以在 Windows Store Dashboard > Product > Product identity 中找到這些值。
有關詳細信息,請參閱本教程:如何將您的 MSIX package 發布到 Microsoft Store”
然后使用這些評論:
flutter clean
flutter build windows
flutter pub run msix:create --store
在此步驟之后,您將獲得用於上傳到 Windows 存儲的 msix 文件。
這是在 Windows 商店上發布的指南:這里
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.