>dart2native --help

编写源文件

// bin\main.dart
main(List<String> args) {
  print('hello world');
}

打包

>dart2native ./bin\main.dart -o ./hello

λ ./hello
hello world

也可以打包为exe文件

>dart2native .\bin\main.dart -o ./hello.exe
Generated: d:\ajanuw\dart-test\hello.exe

>hello.exe
hello world

相关文章:

  • 2021-08-23
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2021-11-02
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-25
  • 2021-05-26
  • 2022-12-23
  • 2021-10-11
  • 2022-02-18
  • 2021-06-15
相关资源
相似解决方案