>dart2native --help
编写源文件
// binmain.dart
main(List<String> args) {
print('hello world');
}
打包
>dart2native ./binmain.dart -o ./hello
λ ./hello
hello world
也可以打包为exe文件
>dart2native .inmain.dart -o ./hello.exe
Generated: d:ajanuwdart-testhello.exe
>hello.exe
hello world