首先没有rust要安装
查看是否安装成功
然后clone下pyapp
https://github.com/ofek/pyapp/releases/latest/download/source.zip -OutFile pyapp-source.zip
进入目录中,cmd,设置环境变量
set PYAPP_PROJECT_NAME=cowsay
set PYAPP_PROJECT_VERSION=6.0
运行
cargo build --release
mv target\release\pyapp.exe cowsay
我们可以在目录下看到exe了
最后
Cowsay -t "Hello, World!"
就出了一个说你好世界话的牛牛
🙂