Build improvements (#51)

* Build: Add symbols to 7z archive

It is much smaller than ZIP (15MB vs 34MB).

* Build: Don't create source package

There is no need to create package with sources as sources for given
release can be easily obtained from git.

* AppVeyor: Remove unneeded install script

__MakeFinal.bat now handles it.

* Build: Less verbose output

* Build: Support for version suffix

AppVeyor may add suffix to version (X.Y.Z-abc) in case of PR builds.

* AppVeyor: Disable shallow clone

To be able to use git commands (in source indexing script).
Use history depth 1 instead.

* Build: Add source index to PDBs

Add source information to PDBs so that source files can be retrieved from Github by debugger.
This commit is contained in:
ge0rdi
2018-07-28 02:30:53 +02:00
committed by Xenhat
parent 261e01e180
commit ad28acaaa3
8 changed files with 216 additions and 145 deletions
@@ -1,48 +1,52 @@
@rem @echo off
@rem This file is to create all the files required for a new release to publish
@echo off
rem This file is to create all the files required for a new release to publish
set PATH=C:\Program Files\7-Zip\;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\WiX Toolset v3.11\bin\;%PATH%
@cd %~dp0
cd %~dp0
@rem Clean repository and build fresh. Will erase current changes so disabled by default.
rem Clean repository and build fresh. Will erase current changes so disabled by default.
rem git clean -dfx
@rem Default version
@set CS_VERSION=4.3.2
rem Default version
set CS_VERSION=4.3.2
@if defined APPVEYOR_BUILD_VERSION (
@set CS_VERSION=%APPVEYOR_BUILD_VERSION%
if defined APPVEYOR_BUILD_VERSION (
set CS_VERSION=%APPVEYOR_BUILD_VERSION%
)
@rem Convert . to _
@set CS_VERSION_STR=%CS_VERSION:.=_%
rem Convert . to _
set CS_VERSION_STR=%CS_VERSION:.=_%
@call BuildBinaries.bat
@if ERRORLEVEL 1 exit /b 1
set CS_VERSION_ORIG=%CS_VERSION%
rem Strip optional "-xyz" suffix from version
for /f "delims=- tokens=1,1" %%i in ("%CS_VERSION%") do set CS_VERSION=%%i
@call _BuildEnglish.bat
@if ERRORLEVEL 1 exit /b 1
call BuildBinaries.bat
if ERRORLEVEL 1 exit /b 1
@rem Build other languages
@call _BuildChineseCN.bat
@if ERRORLEVEL 1 exit /b 1
@call _BuildChineseTW.bat
@if ERRORLEVEL 1 exit /b 1
@call _BuildFrench.bat
@if ERRORLEVEL 1 exit /b 1
@call _BuildGerman.bat
@if ERRORLEVEL 1 exit /b 1
@call _BuildItalian.bat
@if ERRORLEVEL 1 exit /b 1
@call _BuildPolish.bat
@if ERRORLEVEL 1 exit /b 1
@call _BuildRussian.bat
@if ERRORLEVEL 1 exit /b 1
@call _BuildSpanish.bat
@if ERRORLEVEL 1 exit /b 1
call _BuildEnglish.bat
if ERRORLEVEL 1 exit /b 1
rem Build other languages
call _BuildChineseCN.bat
if ERRORLEVEL 1 exit /b 1
call _BuildChineseTW.bat
if ERRORLEVEL 1 exit /b 1
call _BuildFrench.bat
if ERRORLEVEL 1 exit /b 1
call _BuildGerman.bat
if ERRORLEVEL 1 exit /b 1
call _BuildItalian.bat
if ERRORLEVEL 1 exit /b 1
call _BuildPolish.bat
if ERRORLEVEL 1 exit /b 1
call _BuildRussian.bat
if ERRORLEVEL 1 exit /b 1
call _BuildSpanish.bat
if ERRORLEVEL 1 exit /b 1
call BuildArchives.bat
@if ERRORLEVEL 1 exit /b 1
if ERRORLEVEL 1 exit /b 1
@exit /b 0
exit /b 0