Remove unnecessary files from Windows debug_symbols package file

This commit is contained in:
manongjohn 2023-07-07 13:58:15 -04:00
parent 9ad07734f6
commit 525fc22756

View file

@ -10,10 +10,6 @@ echo ">>> Copy and configure Tahoma2D installation"
copy /y RelWithDebInfo\*.* Tahoma2D copy /y RelWithDebInfo\*.* Tahoma2D
REM Remove PDB and ILK files
del Tahoma2D\*.pdb
del Tahoma2D\*.ilk
copy /Y ..\..\thirdparty\freeglut\bin\x64\freeglut.dll Tahoma2D copy /Y ..\..\thirdparty\freeglut\bin\x64\freeglut.dll Tahoma2D
copy /Y ..\..\thirdparty\glew\glew-1.9.0\bin\64bit\glew32.dll Tahoma2D copy /Y ..\..\thirdparty\glew\glew-1.9.0\bin\64bit\glew32.dll Tahoma2D
copy /Y ..\..\thirdparty\libmypaint\dist\64\libiconv-2.dll Tahoma2D copy /Y ..\..\thirdparty\libmypaint\dist\64\libiconv-2.dll Tahoma2D
@ -36,6 +32,10 @@ IF EXIST ..\..\thirdparty\libgphoto2\include (
xcopy /Y /E ..\..\thirdparty\libgphoto2\bin Tahoma2D xcopy /Y /E ..\..\thirdparty\libgphoto2\bin Tahoma2D
) )
REM Remove PDB and ILK files
del Tahoma2D\*.pdb
del Tahoma2D\*.ilk
echo ">>> Copying stuff to Tahoma2D\tahomastuff" echo ">>> Copying stuff to Tahoma2D\tahomastuff"
mkdir Tahoma2D\tahomastuff mkdir Tahoma2D\tahomastuff
@ -77,11 +77,13 @@ IF EXIST Tahoma2D-win.zip del Tahoma2D-win.zip
IF EXIST ..\..\..\tahoma2d_symbols ( IF EXIST ..\..\..\tahoma2d_symbols (
echo ">>> Saving debugging symbols" echo ">>> Saving debugging symbols"
mkdir ..\..\..\tahoma2d_symbols\%date:~10,4%-%date:~4,2%-%date:~7,2% mkdir ..\..\..\tahoma2d_symbols\%date:~10,4%-%date:~4,2%-%date:~7,2%
copy /y RelWithDebInfo\*.* ..\..\..\tahoma2d_symbols\%date:~10,4%-%date:~4,2%-%date:~7,2% copy /y RelWithDebInfo\*.pdb ..\..\..\tahoma2d_symbols\%date:~10,4%-%date:~4,2%-%date:~7,2%
) else ( ) else (
echo ">>> Creating debugging symbols package" echo ">>> Creating debugging symbols package"
IF EXIST debug-symbols.zip del debug-symbols.zip IF EXIST debug-symbols.zip del debug-symbols.zip
7z a debug-symbols.zip RelWithDebInfo\*.* cd RelWithDebInfo
7z a ..\debug-symbols.zip *.pdb
cd ..
) )
cd ../.. cd ../..