flutter mac 应用联网权限和构建发布

Mac 权限

如果你是mac 用户,你可能需要配置权限。

You need to add:

<key>com.apple.security.network.client</key>
<true/>
to macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements.

This is documented here.
 

mac 构建

构建很简单,命令如下:

flutter build macos --release

构建完了,去下面的目录找你的文件

/build/macos/Build/Products/Release

分类: 默认 标签: 发布于: 2022-03-17 09:03:46, 更新于: 2022-03-17 09:03:46