Windows 构建路径已更改,新增目标架构
概述
#Flutter Windows 应用的构建可执行文件现在位于依赖于架构的文件夹中。
背景
#为支持 Arm64 上的 Windows,Windows 构建路径已更新,以添加构建的目标架构。
以前,Flutter 的 Windows 构建默认目标架构为 x64。
迁移指南
#您可能需要更新您的基础设施以使用新的 Flutter Windows 构建路径。
迁移前的构建路径示例
build\windows\runner\Release\hello_world.exe
迁移后(目标为 x64 时)的构建路径示例
build\windows\x64\runner\Release\hello_world.exe
迁移后(目标为 Arm64 时)的构建路径示例
build\windows\arm64\runner\Release\hello_world.exe
如果您使用 package:msix
,请更新到 3.16.7 或更高版本。
时间线
#已在版本中发布: 3.15.0-0.0.pre
稳定版本:3.16
参考资料
#设计文档
相关拉取请求