From 3a107cab220206fc8e5d341ab017e65c50b205b2 Mon Sep 17 00:00:00 2001 From: simonyan <315082291@qq.com> Date: Thu, 17 Oct 2024 16:06:45 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81debug=E5=92=8Crelease=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E6=97=B6=E4=BE=9D=E8=B5=96=E5=BA=93=E7=9A=84windows?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=9A=84=E8=84=9A=E6=9C=AC=E5=AE=8C=E6=88=90?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 10 +++++++++- copy.bat | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 copy.bat diff --git a/.gitignore b/.gitignore index 9799a3a..eac1d2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,10 @@ Tools -output \ No newline at end of file +output +generate +.qmake.stash +.vs +**/*.sln +**/*.vcxproj +**/*.vcxproj.filters +**/*.vcxproj.user +FlowApp/FlowApp_resource.rc diff --git a/copy.bat b/copy.bat new file mode 100644 index 0000000..1c3f72a --- /dev/null +++ b/copy.bat @@ -0,0 +1,36 @@ +@echo off +setlocal enabledelayedexpansion + +set "sourceDir=Tools\Win64" +:: 定义源目录列表 +set "sourceDirs=cgns;hdf5;OCC;Python37;PythonQt;QT5;qwt;SARibbon;VTK" + +:: 定义目标文件夹 +set "destDir=output" + +:: 创建目标文件夹如果它不存在 +if not exist "%destDir%" mkdir "%destDir%" +if not exist "%destDir%\bin" mkdir "%destDir%\bin" +if not exist "%destDir%\bin_d" mkdir "%destDir%\bin_d" + +:: 循环遍历每个源目录并拷贝文件 +for %%d in (%sourceDirs%) do ( + @REM echo Copying files from %%d to %destDir% + @REM xcopy "%%d\*.*" "%destDir%" /E /I /Y /Q + :: 如果是python则直接拷贝 + if "%%d"=="Python37" ( + xcopy "%sourceDir%\%%d\*.*" "%destDir%\bin" /E /I /Y /Q + xcopy "%sourceDir%\%%d\*.*" "%destDir%\bin_d" /E /I /Y /Q + ) else ( + @REM echo "%sourceDir%\%%d\bind\*.dll" + xcopy "%sourceDir%\%%d\bind\*.dll" "%destDir%\bin_d" /E /I /Y /Q + xcopy "%sourceDir%\%%d\bin\*.dll" "%destDir%\bin" /E /I /Y /Q + ) + @REM echo "%sourceDir%\%%d\bind\*.dll" + @REM xcopy "%sourceDir%\%%d\*.dll" "%destDir%" /E /I /Y /Q + +) + +echo All files have been copied. +pause +endlocal \ No newline at end of file