1+ @ echo off
2+ cd %~dp0
3+
4+ call _Version.bat
5+
16if exist Output rd /Q /S Output
27md Output
38md Output\x64
@@ -50,6 +55,7 @@ copy /B ..\..\build\bin\Setup\StartMenuHelper32.dll Output > nul
5055copy /B ..\..\build\bin\Release\Update.exe Output > nul
5156copy /B ..\..\build\bin\Release\DesktopToasts.dll Output > nul
5257copy /B ..\..\build\bin\Release\SetupHelper.exe Output > nul
58+ copy /B ..\..\build\bin\Release\Utility.exe Output > nul
5359
5460copy /B ..\..\build\bin\SetupARM64\ClassicExplorer64.dll Output\ARM64 > nul
5561copy /B ..\..\build\bin\SetupARM64\ClassicIEDLL_64.dll Output\ARM64 > nul
@@ -82,119 +88,6 @@ copy /B "..\..\build\bin\Skins\Metallic.skin7" Output > nul
8288copy /B " ..\..\build\bin\Skins\Immersive.skin" Output > nul
8389copy /B " ..\..\build\bin\Skins\Immersive.skin7" Output > nul
8490
85-
86- REM ********* Collect debug info
87- md Output\PDB32
88- md Output\PDB64
89- md Output\PDBARM64
90-
91- REM Explorer 32
92- copy /B ..\..\build\bin\Setup\ClassicExplorer32.pdb Output\PDB32 > nul
93- copy /B Output\ClassicExplorer32.dll Output\PDB32 > nul
94- copy /B ..\..\build\bin\Setup\ClassicExplorerSettings.pdb Output\PDB32 > nul
95- copy /B Output\ClassicExplorerSettings.exe Output\PDB32 > nul
96-
97- REM Explorer 64
98- copy /B ..\..\build\bin\Setup64\ClassicExplorer64.pdb Output\PDB64 > nul
99- copy /B Output\x64\ClassicExplorer64.dll Output\PDB64 > nul
100-
101- REM Explorer ARM64
102- copy /B ..\..\build\bin\SetupARM64\ClassicExplorer64.pdb Output\PDBARM64 > nul
103- copy /B Output\ARM64\ClassicExplorer64.dll Output\PDBARM64 > nul
104-
105- REM IE 32
106- copy /B ..\..\build\bin\Setup\ClassicIEDLL_32.pdb Output\PDB32 > nul
107- copy /B Output\ClassicIEDLL_32.dll Output\PDB32 > nul
108- copy /B ..\..\build\bin\Setup\ClassicIE_32.pdb Output\PDB32 > nul
109- copy /B Output\ClassicIE_32.exe Output\PDB32 > nul
110-
111- REM IE 64
112- copy /B ..\..\build\bin\Setup64\ClassicIEDLL_64.pdb Output\PDB64 > nul
113- copy /B Output\x64\ClassicIEDLL_64.dll Output\PDB64 > nul
114- copy /B ..\..\build\bin\Setup64\ClassicIE_64.pdb Output\PDB64 > nul
115- copy /B Output\x64\ClassicIE_64.exe Output\PDB64 > nul
116-
117- REM IE ARM64
118- copy /B ..\..\build\bin\SetupARM64\ClassicIEDLL_64.pdb Output\PDBARM64 > nul
119- copy /B Output\ARM64\ClassicIEDLL_64.dll Output\PDBARM64 > nul
120- copy /B ..\..\build\bin\SetupARM64\ClassicIE_64.pdb Output\PDBARM64 > nul
121- copy /B Output\ARM64\ClassicIE_64.exe Output\PDBARM64 > nul
122-
123- REM Menu 32
124- copy /B ..\..\build\bin\Setup\StartMenu.pdb Output\PDB32 > nul
125- copy /B Output\StartMenu.exe Output\PDB32 > nul
126- copy /B ..\..\build\bin\Setup\StartMenuDLL.pdb Output\PDB32 > nul
127- copy /B Output\StartMenuDLL.dll Output\PDB32 > nul
128- copy /B ..\..\build\bin\Setup\StartMenuHelper32.pdb Output\PDB32 > nul
129- copy /B Output\StartMenuHelper32.dll Output\PDB32 > nul
130- copy /B ..\..\build\bin\Release\Update.pdb Output\PDB32 > nul
131- copy /B Output\Update.exe Output\PDB32 > nul
132- copy /B ..\..\build\bin\Release\DesktopToasts.pdb Output\PDB32 > nul
133- copy /B Output\DesktopToasts.dll Output\PDB32 > nul
134-
135- REM Menu 64
136- copy /B ..\..\build\bin\Setup64\StartMenu.pdb Output\PDB64 > nul
137- copy /B Output\x64\StartMenu.exe Output\PDB64 > nul
138- copy /B ..\..\build\bin\Setup64\StartMenuDLL.pdb Output\PDB64 > nul
139- copy /B Output\x64\StartMenuDLL.dll Output\PDB64 > nul
140- copy /B ..\..\build\bin\Setup64\StartMenuHelper64.pdb Output\PDB64 > nul
141- copy /B Output\x64\StartMenuHelper64.dll Output\PDB64 > nul
142-
143- REM Menu ARM64
144- copy /B ..\..\build\bin\SetupARM64\StartMenu.pdb Output\PDBARM64 > nul
145- copy /B Output\ARM64\StartMenu.exe Output\PDBARM64 > nul
146- copy /B ..\..\build\bin\SetupARM64\StartMenuDLL.pdb Output\PDBARM64 > nul
147- copy /B Output\ARM64\StartMenuDLL.dll Output\PDBARM64 > nul
148- copy /B ..\..\build\bin\SetupARM64\StartMenuHelper64.pdb Output\PDBARM64 > nul
149- copy /B Output\ARM64\StartMenuHelper64.dll Output\PDBARM64 > nul
150-
151- REM ********* Source Index PDBs
152-
153- set PDBSTR_PATH = " C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\srcsrv\pdbstr.exe"
154-
155- if exist %PDBSTR_PATH% (
156- echo --- Adding source index to PDBs
157- call CreateSourceIndex.bat ..\.. > Output\pdbstr.txt
158-
159- for %%f in (Output\PDB32\*.pdb) do (
160- %PDBSTR_PATH% -w -p:%%f -s:srcsrv -i:Output\pdbstr.txt
161- if not ERRORLEVEL 0 (
162- echo Error adding source index to PDB
163- exit /b 1
164- )
165- )
166-
167- for %%f in (Output\PDB64\*.pdb) do (
168- %PDBSTR_PATH% -w -p:%%f -s:srcsrv -i:Output\pdbstr.txt
169- if not ERRORLEVEL 0 (
170- echo Error adding source index to PDB
171- exit /b 1
172- )
173- )
174-
175- for %%f in (Output\PDBARM64\*.pdb) do (
176- %PDBSTR_PATH% -w -p:%%f -s:srcsrv -i:Output\pdbstr.txt
177- if not ERRORLEVEL 0 (
178- echo Error adding source index to PDB
179- exit /b 1
180- )
181- )
182- )
183-
184- REM ********* Prepare symbols
185-
186- set SYMSTORE_PATH = " C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\symstore.exe"
187-
188- %SYMSTORE_PATH% add /r /f Output\PDB32 /s Output\symbols /t OpenShell -:NOREFS > nul
189- %SYMSTORE_PATH% add /r /f Output\PDB64 /s Output\symbols /t OpenShell -:NOREFS > nul
190- %SYMSTORE_PATH% add /r /f Output\PDBARM64 /s Output\symbols /t OpenShell -:NOREFS > nul
191- rd /Q /S Output\symbols\000Admin > nul
192- del Output\symbols\pingme.txt > nul
193-
194- rd /Q /S Output\PDB32
195- rd /Q /S Output\PDB64
196- rd /Q /S Output\PDBARM64
197-
19891REM ********* Build ADMX
19992echo --- ADMX
20093if exist Output\PolicyDefinitions.zip (
@@ -209,7 +102,7 @@ cd ..\Localization\English
209102@ if ERRORLEVEL 1 exit /b 1
210103md en-US
211104copy /B *.adml en-US > nul
212- 7z a ..\..\Setup\Output\PolicyDefinitions.zip *.admx en-US\*.adml PolicyDefinitions.rtf > nul
105+ tar -a -c -f ..\..\Setup\Output\PolicyDefinitions.zip *.admx en-US\*.adml PolicyDefinitions.rtf
213106rd /Q /S en-US
214107cd ..\..\Setup
215108
0 commit comments