Skip to content

Commit 3eb134a

Browse files
committed
Setup: Store symbols in symstore compatible way
This way they can be directly extracted to symbol server cache. So any tool that uses _NT_SYMBOL_PATH will be able to use them automatically.
1 parent 2570232 commit 3eb134a

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

Src/Setup/BuildArchives.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ REM ***** Collect PDBs
33
echo -- Creating symbols package
44
set CS_SYMBOLS_NAME=OpenShellPDB_%CS_VERSION_STR%.7z
55

6-
cd Output
7-
7z a -mx9 ..\Final\%CS_SYMBOLS_NAME% PDB32 PDB64 > nul
8-
cd ..
6+
7z a -mx9 .\Final\%CS_SYMBOLS_NAME% .\Output\symbols\* > nul
97

108
if defined APPVEYOR (
119
appveyor PushArtifact Final\%CS_SYMBOLS_NAME%

Src/Setup/BuildBinaries.bat

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
if exist Output rd /Q /S Output
22
md Output
33
md Output\x64
4-
md Output\PDB32
5-
md Output\PDB64
64

75
echo -- Compiling
86

@@ -67,6 +65,8 @@ copy /B "..\StartMenu\Skins\Metallic.skin7" Output > nul
6765

6866

6967
REM ********* Collect debug info
68+
md Output\PDB32
69+
md Output\PDB64
7070

7171
REM Explorer 32
7272
copy /B ..\ClassicExplorer\Setup\ClassicExplorer32.pdb Output\PDB32 > nul
@@ -126,6 +126,18 @@ if exist %PDBSTR_PATH% (
126126
)
127127
)
128128

129+
REM ********* Prepare symbols
130+
131+
set SYMSTORE_PATH="C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\symstore.exe"
132+
133+
%SYMSTORE_PATH% add /r /f Output\PDB32 /s Output\symbols /t OpenShell -:NOREFS > nul
134+
%SYMSTORE_PATH% add /r /f Output\PDB64 /s Output\symbols /t OpenShell -:NOREFS > nul
135+
rd /Q /S Output\symbols\000Admin > nul
136+
del Output\symbols\pingme.txt > nul
137+
138+
rd /Q /S Output\PDB32
139+
rd /Q /S Output\PDB64
140+
129141
REM ********* Build ADMX
130142
echo --- ADMX
131143
if exist Output\PolicyDefinitions.zip (

0 commit comments

Comments
 (0)