Merge pull request #670 from manongjohn/update_windows_build_scripts

Separate debug files from windows build
This commit is contained in:
manongjohn 2021-04-19 08:25:48 -04:00 committed by GitHub
commit 2422195cce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View file

@ -27,3 +27,7 @@ jobs:
with:
name: Tahoma2D-win.zip
path: toonz\build\Tahoma2D-win.zip
- uses: actions/upload-artifact@v1
with:
name: debug-symbols.zip
path: toonz\build\debug-symbols.zip

View file

@ -10,6 +10,10 @@ echo ">>> Copy and configure Tahoma2D installation"
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\glew\glew-1.9.0\bin\64bit\glew32.dll Tahoma2D
copy /Y ..\..\thirdparty\libmypaint\dist\64\libiconv-2.dll Tahoma2D
@ -70,4 +74,21 @@ echo ">>> Creating Tahoma2D Windows package"
IF EXIST Tahoma2D-win.zip del Tahoma2D-win.zip
7z a Tahoma2D-win.zip Tahoma2D
IF EXIST ..\..\..\tahoma2d_symbols (
echo ">>> Saving debugging symbols"
for /f "tokens=1-4 delims=/ " %%i in ("%date%") do (
set dow=%%i
set month=%%j
set day=%%k
set year=%%l
)
set DATEDIR="%year%-%month%-%day%"
mkdir ..\..\..\tahoma2d_symbols\%DATEDIR%
copy /y RelWithDebInfo\*.* ..\..\..\tahoma2d_symbols\%DATEDIR%
) else (
echo ">>> Creating debugging symbols package"
IF EXIST debug-symbols.zip del debug-symbols.zip
7z a debug-symbols.zip RelWithDebInfo\*.*
)
cd ../..