diff --git a/build_for_win.bat b/build_for_win.bat index bb60e7a..ec3f3ef 100644 --- a/build_for_win.bat +++ b/build_for_win.bat @@ -34,7 +34,11 @@ if /i "%2"=="x64" ( ) :: 提示 -echo 当前编译模式为debug %debug_mode% %cpu_mode% +if /i %debug_mode% == "true" ( + echo 当前编译模式为 debug %cpu_mode% +) else ( + echo 当前编译模式为debug release %cpu_mode% +) :: 环境变量设置 if /i %cpu_mode% == x86 ( diff --git a/publish_for_win.bat b/publish_for_win.bat index 8a37888..844fd11 100644 --- a/publish_for_win.bat +++ b/publish_for_win.bat @@ -50,8 +50,19 @@ windeployqt %publish_path%\QtScrcpy.exe :: 删除多余qt依赖包 rmdir /s/q %publish_path%\iconengines -rmdir /s/q %publish_path%\imageformats rmdir /s/q %publish_path%\translations + +:: 截图功能需要qjpeg.dll +del %publish_path%\imageformats\qgif.dll +del %publish_path%\imageformats\qicns.dll +del %publish_path%\imageformats\qico.dll +::del %publish_path%\imageformats\qjpeg.dll +del %publish_path%\imageformats\qsvg.dll +del %publish_path%\imageformats\qtga.dll +del %publish_path%\imageformats\qtiff.dll +del %publish_path%\imageformats\qwbmp.dll +del %publish_path%\imageformats\qwebp.dll + if /i %cpu_mode% == x86 ( del %publish_path%\vc_redist.x86.exe ) else (