windows - 如何构建 Windows 应用程序的发布版本?

标签 windows flutter dart flutter-dependencies flutter-test

How to build release version of windows app in flutter and where to find the build file ?


实际上我已经使用 flutter build windows 构建了 Windows 应用程序。但无法找到可以安装到其他桌面并可以进一步使用的文件。
flutter 医生输出:-
H:\window app flutter\windowsapp>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.22.0-2.0.pre.36, on Microsoft Windows [Version 10.0.18363.1082], locale en-IN)
 
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.5)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.50.0)
[√] Connected device (4 available)

• No issues found!
请帮忙🙂

最佳答案

欲了解更多详情,请访问 https://flutter.dev/desktop

  • 可执行文件可以在您的项目中找到
    build\windows\runner<构建模式>。除了那个可执行文件,
    您需要以下内容:

  • 来自同一目录:
    所有 .dll 文件
    数据目录
    Visual C++ 可再发行版
    您可以使用 Microsoft 站点上的部署示例演练中显示的任何方法。
    如果使用 application-local 选项,则需要复制:
    msvcp140.dll
    vcruntime140.dll
    vcruntime140_1.dll
    将 DLL 文件放在可执行文件和其他 DLL 旁边的目录中,并将它们捆绑在一个 zip 文件中。

    关于windows - 如何构建 Windows 应用程序的发布版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64291336/

    相关文章:

    c++ - 如何通过 HttpReceiveHttpRequest() 使用 HTTPS?

    c++ - strcat 两次添加第二个参数

    windows - 如何在 Windows Phone 8 中获取视频文件的视频缩略图?

    iOS图标构建错误

    flutter - 有没有办法将小部件对齐到 Flutter 中一行的最右边?

    android - 如何在 flutter 中扩展一个 textField 看起来像一个文本区域

    windows - 如何在 powershell 中创建一个简短但仍然唯一的目录名称

    firebase - Flutter Cloud Firestore在调试时仅获取最新数据

    dart - 缺少 Getter 和 Setter 的具体实现

    dart - dart 团队推荐的在 Flutter 中使用 await 时捕获错误的方法