Dart 支持交叉编译
Flutter main channel 提供了一个新功能:支持交叉编译 Dart AOT 可执行文件。 目前支持从 Windows 和 macOS 编译为 Linux 二进制文件: --target-os=linux --target-arch=value:目标体系结构,可以是arm64(64 位 ARM 处理器)或x64(64 位处理器) 例如 :dart compile exe --target-os=linux --target-arch=x64 hello.dart -o hello 目前,执行这个命令会下载额外的 Dart SDK 二进制文件,并将它们缓存在~/.dart目录 : Downloading https://storage.googleapis.com/dart-archive/channels/dev/signed/hash/...4864.../sdk/gen_snapshot_macos_arm64_linux_x64... Downloading https://storage.googleapis.com/dart-archive/channel...