mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-06-17 12:50:08 +10:00
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:
@@ -1,111 +1,133 @@
|
||||
if exist Output rd /Q /S Output
|
||||
md Output
|
||||
del /Q /S Output\*.*
|
||||
md Output\x64
|
||||
md Output\PDB32
|
||||
md Output\PDB64
|
||||
|
||||
echo -- Compiling
|
||||
|
||||
for /f "usebackq tokens=*" %%i in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do set MSBuildDir=%%i\MSBuild\15.0\Bin\
|
||||
|
||||
REM ********* Build 64-bit solution
|
||||
"%MSBuildDir%MSBuild.exe" ..\ClassicStart.sln /m /t:Rebuild /p:Configuration="Setup" /p:Platform="x64" /verbosity:minimal
|
||||
echo --- 64bit
|
||||
"%MSBuildDir%MSBuild.exe" ..\ClassicStart.sln /m /t:Rebuild /p:Configuration="Setup" /p:Platform="x64" /verbosity:quiet /nologo
|
||||
@if ERRORLEVEL 1 exit /b 1
|
||||
|
||||
REM ********* Build 32-bit solution (must be after 64-bit)
|
||||
"%MSBuildDir%MSBuild.exe" ..\ClassicStart.sln /m /t:Rebuild /p:Configuration="Setup" /p:Platform="Win32" /verbosity:minimal
|
||||
echo --- 32bit
|
||||
"%MSBuildDir%MSBuild.exe" ..\ClassicStart.sln /m /t:Rebuild /p:Configuration="Setup" /p:Platform="Win32" /verbosity:quiet /nologo
|
||||
@if ERRORLEVEL 1 exit /b 1
|
||||
|
||||
|
||||
REM ********* Make en-US.dll
|
||||
cd ..
|
||||
start /wait ClassicStartSetup\ClassicStartUtility\Release\ClassicStartUtility.exe makeEN ClassicExplorer\Setup\ClassicExplorer32.dll ClassicStartMenu\Setup\ClassicStartMenuDLL.dll ClassicIE\Setup\ClassicIEDLL_32.dll ClassicStartUpdate\Release\ClassicStartUpdate.exe
|
||||
ClassicStartSetup\ClassicStartUtility\Release\ClassicStartUtility.exe makeEN ClassicExplorer\Setup\ClassicExplorer32.dll ClassicStartMenu\Setup\ClassicStartMenuDLL.dll ClassicIE\Setup\ClassicIEDLL_32.dll ClassicStartUpdate\Release\ClassicStartUpdate.exe
|
||||
@if ERRORLEVEL 1 exit /b 1
|
||||
|
||||
start /wait ClassicStartSetup\ClassicStartUtility\Release\ClassicStartUtility.exe extract en-US.dll en-US.csv
|
||||
copy en-US.dll Localization\English
|
||||
move en-US.csv Localization\English
|
||||
ClassicStartSetup\ClassicStartUtility\Release\ClassicStartUtility.exe extract en-US.dll en-US.csv
|
||||
copy /B en-US.dll Localization\English > nul
|
||||
move en-US.csv Localization\English > nul
|
||||
|
||||
cd ClassicStartSetup
|
||||
|
||||
|
||||
REM ********* Copy binaries
|
||||
|
||||
copy /B ..\ClassicExplorer\Setup\ClassicExplorer32.dll Output
|
||||
copy /B ..\ClassicExplorer\Setup\ClassicExplorerSettings.exe Output
|
||||
copy /B ..\ClassicIE\Setup\ClassicIEDLL_32.dll Output
|
||||
copy /B ..\ClassicIE\Setup\ClassicIE_32.exe Output
|
||||
copy /B ..\ClassicStartMenu\Setup\ClassicStartMenu.exe Output
|
||||
copy /B ..\ClassicStartMenu\Setup\ClassicStartMenuDLL.dll Output
|
||||
copy /B ..\ClassicStartUpdate\Release\ClassicStartUpdate.exe Output
|
||||
copy /B ..\ClassicStartMenu\StartMenuHelper\Setup\StartMenuHelper32.dll Output
|
||||
copy /B ..\ClassicStartSetup\SetupHelper\Release\SetupHelper.exe Output
|
||||
copy /B ..\ClassicExplorer\Setup\ClassicExplorer32.dll Output > nul
|
||||
copy /B ..\ClassicExplorer\Setup\ClassicExplorerSettings.exe Output > nul
|
||||
copy /B ..\ClassicIE\Setup\ClassicIEDLL_32.dll Output > nul
|
||||
copy /B ..\ClassicIE\Setup\ClassicIE_32.exe Output > nul
|
||||
copy /B ..\ClassicStartMenu\Setup\ClassicStartMenu.exe Output > nul
|
||||
copy /B ..\ClassicStartMenu\Setup\ClassicStartMenuDLL.dll Output > nul
|
||||
copy /B ..\ClassicStartUpdate\Release\ClassicStartUpdate.exe Output > nul
|
||||
copy /B ..\ClassicStartMenu\StartMenuHelper\Setup\StartMenuHelper32.dll Output > nul
|
||||
copy /B ..\ClassicStartSetup\SetupHelper\Release\SetupHelper.exe Output > nul
|
||||
|
||||
copy /B ..\ClassicExplorer\Setup64\ClassicExplorer64.dll Output\x64
|
||||
copy /B ..\ClassicIE\Setup64\ClassicIEDLL_64.dll Output\x64
|
||||
copy /B ..\ClassicIE\Setup64\ClassicIE_64.exe Output\x64
|
||||
copy /B ..\ClassicStartMenu\Setup64\ClassicStartMenu.exe Output\x64
|
||||
copy /B ..\ClassicStartMenu\Setup64\ClassicStartMenuDLL.dll Output\x64
|
||||
copy /B ..\ClassicStartMenu\StartMenuHelper\Setup64\StartMenuHelper64.dll Output\x64
|
||||
copy /B ..\ClassicExplorer\Setup64\ClassicExplorer64.dll Output\x64 > nul
|
||||
copy /B ..\ClassicIE\Setup64\ClassicIEDLL_64.dll Output\x64 > nul
|
||||
copy /B ..\ClassicIE\Setup64\ClassicIE_64.exe Output\x64 > nul
|
||||
copy /B ..\ClassicStartMenu\Setup64\ClassicStartMenu.exe Output\x64 > nul
|
||||
copy /B ..\ClassicStartMenu\Setup64\ClassicStartMenuDLL.dll Output\x64 > nul
|
||||
copy /B ..\ClassicStartMenu\StartMenuHelper\Setup64\StartMenuHelper64.dll Output\x64 > nul
|
||||
|
||||
copy /B "..\ClassicStartMenu\Skins\Classic Skin.skin" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Full Glass.skin" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Smoked Glass.skin" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows Aero.skin" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows Basic.skin" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows XP Luna.skin" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows 8.skin" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Metro.skin" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Classic Skin.skin7" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows Aero.skin7" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows 8.skin7" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Midnight.skin7" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Metro.skin7" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Metallic.skin7" Output
|
||||
copy /B "..\ClassicStartMenu\Skins\Classic Skin.skin" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Full Glass.skin" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Smoked Glass.skin" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows Aero.skin" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows Basic.skin" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows XP Luna.skin" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows 8.skin" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Metro.skin" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Classic Skin.skin7" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows Aero.skin7" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Windows 8.skin7" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Midnight.skin7" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Metro.skin7" Output > nul
|
||||
copy /B "..\ClassicStartMenu\Skins\Metallic.skin7" Output > nul
|
||||
|
||||
|
||||
REM ********* Collect debug info
|
||||
|
||||
REM Explorer 32
|
||||
copy /B ..\ClassicExplorer\Setup\ClassicExplorer32.pdb Output\PDB32
|
||||
copy /B Output\ClassicExplorer32.dll Output\PDB32
|
||||
copy /B ..\ClassicExplorer\Setup\ClassicExplorerSettings.pdb Output\PDB32
|
||||
copy /B Output\ClassicExplorerSettings.exe Output\PDB32
|
||||
copy /B ..\ClassicExplorer\Setup\ClassicExplorer32.pdb Output\PDB32 > nul
|
||||
copy /B Output\ClassicExplorer32.dll Output\PDB32 > nul
|
||||
copy /B ..\ClassicExplorer\Setup\ClassicExplorerSettings.pdb Output\PDB32 > nul
|
||||
copy /B Output\ClassicExplorerSettings.exe Output\PDB32 > nul
|
||||
|
||||
REM Explorer 64
|
||||
copy /B ..\ClassicExplorer\Setup64\ClassicExplorer64.pdb Output\PDB64
|
||||
copy /B Output\x64\ClassicExplorer64.dll Output\PDB64
|
||||
copy /B ..\ClassicExplorer\Setup64\ClassicExplorer64.pdb Output\PDB64 > nul
|
||||
copy /B Output\x64\ClassicExplorer64.dll Output\PDB64 > nul
|
||||
|
||||
REM IE 32
|
||||
copy /B ..\ClassicIE\Setup\ClassicIEDLL_32.pdb Output\PDB32
|
||||
copy /B Output\ClassicIEDLL_32.dll Output\PDB32
|
||||
copy /B ..\ClassicIE\Setup\ClassicIE_32.exe Output\PDB32
|
||||
copy /B Output\ClassicIE_32.exe Output\PDB32
|
||||
copy /B ..\ClassicIE\Setup\ClassicIEDLL_32.pdb Output\PDB32 > nul
|
||||
copy /B Output\ClassicIEDLL_32.dll Output\PDB32 > nul
|
||||
copy /B ..\ClassicIE\Setup\ClassicIE_32.exe Output\PDB32 > nul
|
||||
copy /B Output\ClassicIE_32.exe Output\PDB32 > nul
|
||||
|
||||
REM IE 64
|
||||
copy /B ..\ClassicIE\Setup64\ClassicIEDLL_64.pdb Output\PDB64
|
||||
copy /B Output\x64\ClassicIEDLL_64.dll Output\PDB64
|
||||
copy /B ..\ClassicIE\Setup64\ClassicIE_64.exe Output\PDB64
|
||||
copy /B Output\x64\ClassicIE_64.exe Output\PDB64
|
||||
copy /B ..\ClassicIE\Setup64\ClassicIEDLL_64.pdb Output\PDB64 > nul
|
||||
copy /B Output\x64\ClassicIEDLL_64.dll Output\PDB64 > nul
|
||||
copy /B ..\ClassicIE\Setup64\ClassicIE_64.exe Output\PDB64 > nul
|
||||
copy /B Output\x64\ClassicIE_64.exe Output\PDB64 > nul
|
||||
|
||||
REM Menu 32
|
||||
copy /B ..\ClassicStartMenu\Setup\ClassicStartMenu.pdb Output\PDB32
|
||||
copy /B Output\ClassicStartMenu.exe Output\PDB32
|
||||
copy /B ..\ClassicStartMenu\Setup\ClassicStartMenuDLL.pdb Output\PDB32
|
||||
copy /B Output\ClassicStartMenuDLL.dll Output\PDB32
|
||||
copy /B ..\ClassicStartMenu\StartMenuHelper\Setup\StartMenuHelper32.pdb Output\PDB32
|
||||
copy /B Output\StartMenuHelper32.dll Output\PDB32
|
||||
copy /B ..\ClassicStartUpdate\Release\ClassicStartUpdate.pdb Output\PDB32
|
||||
copy /B Output\ClassicStartUpdate.exe Output\PDB32
|
||||
copy /B ..\ClassicStartMenu\Setup\ClassicStartMenu.pdb Output\PDB32 > nul
|
||||
copy /B Output\ClassicStartMenu.exe Output\PDB32 > nul
|
||||
copy /B ..\ClassicStartMenu\Setup\ClassicStartMenuDLL.pdb Output\PDB32 > nul
|
||||
copy /B Output\ClassicStartMenuDLL.dll Output\PDB32 > nul
|
||||
copy /B ..\ClassicStartMenu\StartMenuHelper\Setup\StartMenuHelper32.pdb Output\PDB32 > nul
|
||||
copy /B Output\StartMenuHelper32.dll Output\PDB32 > nul
|
||||
copy /B ..\ClassicStartUpdate\Release\ClassicStartUpdate.pdb Output\PDB32 > nul
|
||||
copy /B Output\ClassicStartUpdate.exe Output\PDB32 > nul
|
||||
|
||||
REM Menu 64
|
||||
copy /B ..\ClassicStartMenu\Setup64\ClassicStartMenu.pdb Output\PDB64
|
||||
copy /B Output\x64\ClassicStartMenu.exe Output\PDB64
|
||||
copy /B ..\ClassicStartMenu\Setup64\ClassicStartMenuDLL.pdb Output\PDB64
|
||||
copy /B Output\x64\ClassicStartMenuDLL.dll Output\PDB64
|
||||
copy /B ..\ClassicStartMenu\StartMenuHelper\Setup64\StartMenuHelper64.pdb Output\PDB64
|
||||
copy /B Output\x64\StartMenuHelper64.dll Output\PDB64
|
||||
copy /B ..\ClassicStartMenu\Setup64\ClassicStartMenu.pdb Output\PDB64 > nul
|
||||
copy /B Output\x64\ClassicStartMenu.exe Output\PDB64 > nul
|
||||
copy /B ..\ClassicStartMenu\Setup64\ClassicStartMenuDLL.pdb Output\PDB64 > nul
|
||||
copy /B Output\x64\ClassicStartMenuDLL.dll Output\PDB64 > nul
|
||||
copy /B ..\ClassicStartMenu\StartMenuHelper\Setup64\StartMenuHelper64.pdb Output\PDB64 > nul
|
||||
copy /B Output\x64\StartMenuHelper64.dll Output\PDB64 > nul
|
||||
|
||||
|
||||
REM ********* Source Index PDBs
|
||||
|
||||
set PDBSTR_PATH="C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\srcsrv\pdbstr.exe"
|
||||
|
||||
if exist %PDBSTR_PATH% (
|
||||
echo --- Adding source index to PDBs
|
||||
call CreateSourceIndex.bat ..\.. > Output\pdbstr.txt
|
||||
|
||||
for %%f in (Output\PDB32\*.pdb) do (
|
||||
%PDBSTR_PATH% -w -p:%%f -s:srcsrv -i:Output\pdbstr.txt
|
||||
)
|
||||
|
||||
for %%f in (Output\PDB64\*.pdb) do (
|
||||
%PDBSTR_PATH% -w -p:%%f -s:srcsrv -i:Output\pdbstr.txt
|
||||
)
|
||||
)
|
||||
|
||||
REM ********* Build ADMX
|
||||
echo --- ADMX
|
||||
if exist Output\PolicyDefinitions.zip (
|
||||
del Output\PolicyDefinitions.zip
|
||||
)
|
||||
@@ -117,8 +139,8 @@ cd ..\Localization\English
|
||||
..\..\ClassicIE\Setup\ClassicIE_32.exe -saveadmx en-US
|
||||
@if ERRORLEVEL 1 exit /b 1
|
||||
md en-US
|
||||
copy /B *.adml en-US
|
||||
7z a ..\..\ClassicStartSetup\Output\PolicyDefinitions.zip *.admx en-US\*.adml PolicyDefinitions.rtf
|
||||
copy /B *.adml en-US > nul
|
||||
7z a ..\..\ClassicStartSetup\Output\PolicyDefinitions.zip *.admx en-US\*.adml PolicyDefinitions.rtf > nul
|
||||
rd /Q /S en-US
|
||||
cd ..\..\ClassicStartSetup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user