Chocoletely
安装mingw
字数: 0 字 时长: 0 分钟
以下最好在蓝色的Windows PowerShell (x86) 中以cmd运行,否则可能没权限
sh
choco install mingw
后输入Y
验证
sh
mingw32-make --version
gcc --version
问题
- 变量可能加到用户变量里了,挪到系统变量里
- 让make命令使用mingw32-make
sh
cd C:\ProgramData\mingw64\mingw64\bin
cmd /c mklink make.exe mingw32-make.exe
使用Makefile
https://zhuanlan.zhihu.com/p/499175729
编写Makefile
Makefile
dart_executable_path = dart
flutter_executable_path = flutter
clean:
$(flutter_executable_path) clean
运行Makefile
sh
make clean