[Dart] 編譯Dart為Windowos的可執行檔
參考文件
測試程式碼
import 'dart:io';
void main() {
print("What's your name?");
var name = stdin.readLineSync();
print("How are you $name, today?");
}
編譯為執行檔
$> dart2native.bat .\test.dart -o test.exe
Generated: c:\xxxxxxx\code\dart\test\test.exe
Generated: c:\xxxxxxx\code\dart\test\test.exe
留言