使用Qt 发布程序
1.在一个空文件夹内放入release版的exe程序文件
2.新建后缀名为.bat的文件,打开编辑,使用以下批处理命令
windeployqt为qt自带的打包程序
rem 设置临时的编译器系统环境变量
set path=C:\myself\Qt\Qt5.12.12\5.12.12\msvc2017_64\bin
windeployqt --release --no-translations 41.exe
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/ddc9cec499ccd29a99b55784722d7549.png)
3.手动复制自定义或第三方的动态库到建立的文件夹中
5.双击exe文件方可运行