forked from svn2github/dotnetzip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakeReleaseZips.bat
538 lines (359 loc) · 23.4 KB
/
MakeReleaseZips.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
@echo off
goto START
-------------------------------------------------------
MakeReleaseZips.bat
Makes the zips, msi's, and chm for the DotNetZip release content.
created: Thu, 19 Jun 2008 22:17
This batch file is part of DotNetZip.
DotNetZip is Copyright 2008-2011 Dino Chiesa.
DotNetZip is licensed under the MS-PL. See the accompanying
License.txt file.
Last Updated: <2011-August-06 01:37:07>
-------------------------------------------------------
:START
setlocal
set baseDir=%~dps0
set SNEXE=c:\winsdk\bin\sn.exe
set MSBUILD=c:\.net4.0\msbuild.exe
set POWERSHELL=c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
@REM set zipit=c:\users\dino\bin\zipit.exe
set zipit=%baseDir%tools\Zipit\bin\Debug\zipit.exe
set ExpectedSignedDlls=32
set stamp=%DATE% %TIME%
set stamp=%stamp:/=-%
set stamp=%stamp: =-%
set stamp=%stamp::=%
@REM get the version:
for /f "delims==" %%I in ('type SolutionInfo.cs ^| c:\bin\grep.exe AssemblyVersion ^| c:\bin\sed.exe -e "s/^.*(.\(.*\).).*/\1 /"') do set longversion=%%I
set version=%longversion:~0,3%
echo version is %version%
%MSBUILD% DotNetZip.sln /p:Configuration=Debug
%MSBUILD% DotNetZip.sln /p:Configuration=Release
call :CheckSignatures
if ERRORLEVEL 1 (
echo exiting.
exit /b 1
)
set releaseDir=releases\v%version%-%stamp%
echo making release dir %releaseDir%
mkdir %releaseDir%
call :MakeDocumentation
::REM call :MakeIntegratedHelpMsi
call :MakeDevelopersRedist
call :MakeRuntimeRedist
call :MakeSilverlightRedist
call :MakeZipUtils
call :MakeUtilsMsi
call :MakeRuntimeMsi
%POWERSHELL% .\clean.ps1
call :MakeSrcZip
goto :END
--------------------------------------------
:CheckSignatures
@REM check the digital signatures on the various DLLs
SETLOCAL EnableExtensions EnableDelayedExpansion
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Checking signatures...
echo.
set verbose=1
set rcode=0
set ccount=0
set okcount=0
set notsigned=0
for /R %%D in (*.dll) do (
@REM don't check DLLs from some directories
set thisfile=%%D
echo !thisfile! | findstr TestResults >nul:
if ERRORLEVEL 1 (
echo !thisfile! | findstr Examples >nul:
if ERRORLEVEL 1 (
echo !thisfile! | findstr Tests >nul:
if ERRORLEVEL 1 (
echo !thisfile! | findstr \obj\ >nul:
if ERRORLEVEL 1 (
call :BACKTICK pubkey %SNEXE% -q -T "!thisfile!"
set /a ccount=!ccount!+1
If "!pubkey:~-44!"=="does not represent a strongly named assembly" (
set /a notsigned=!notsigned!+1
if %verbose% GTR 0 (echo !pubkey!)
) else (
if %verbose% GTR 0 (echo %%D !pubkey!)
If /i "!pubkey:~-16!"=="edbe51ad942a3f5c" (
set /a okcount=!okcount!+1
) else (
set /a rcode=!rcode!+1
)
)
)
)
)
)
)
if %verbose% GTR 0 (
echo Checked !ccount! DLLs
echo !notsigned! were not signed
echo !okcount! were signed, with the correct key
echo !rcode! were signed, with the wrong key
)
if !rcode! GTR 0 (
echo.
echo Found !rcode! assemblies signed with an unexpected key.
exit /b 1
)
if !okcount! NEQ %ExpectedSignedDlls% (
echo.
echo There are !okcount! correctly signed assemblies.
echo That does not agree with the configured expected value of %ExpectedSignedDlls%.
exit /b 1
)
echo.
echo.
endlocal
goto :EOF
-------------------------------------------------------
--------------------------------------------
:MakeDocumentation
@REM This batch subroutine invokes MSBUILD using the shfbproj files
@REM for Documentation. Example output htmlhelp1 file name:
@REM DotNetZipLib-v1.9.chm
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Building Documentation Files
echo.
echo build Help\HtmlHelp1.shfbproj
%MSBUILD% /nologo /p:Configuration=Release Help\HtmlHelp1.shfbproj
echo build Help\HelpViewer.shfbproj
%MSBUILD% /nologo /p:Configuration=Release Help\HelpViewer.shfbproj
set zipfile=DotNetZip-Documentation-v%version%.zip
set rzipfile=%releaseDir%\%zipfile%
echo zipfile is %rzipfile%
%zipit% %rzipfile% -s Readme.txt "This zip contains the documentation for DotNetZip in various help formats. This is for DotNetZip v%version%. This package was packed %stamp%. " -s You-can-Donate.txt "FYI: DotNetZip is donationware. Consider donating. It's for a good cause. http://cheeso.members.winisp.net/DotNetZipDonate.aspx"
%zipit% %rzipfile% -d . -D Help\bin\HtmlHelp1 -E *.chm -d "Help Viewer 1.0" -D Help\bin\HelpViewer -r+ -E "(name != *.chm) AND (name != *.log)"
goto :EOF
--------------------------------------------
--------------------------------------------
:MakeDevelopersRedist
@REM example output zipfile name: DotNetZipLib-DevKit-v1.5.zip
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Making the Developer's redistributable zip...
echo.
set zipfile=DotNetZipLib-DevKit-v%version%.zip
@REM for %%f in (%releaseDir%\%zipfile%) do set rzipfile=%%~ff
set rzipfile=%releaseDir%\%zipfile%
echo zipfile is %rzipfile%
%zipit% %rzipfile% -s Contents.txt "This is the Developer's Kit package for DotNetZip v%version%. This package was packed %stamp%. In this zip you will find Debug and Release DLLs for the various versions of the assemblies: Ionic.Zip, Ionic.Zlib, and Ionic.BZip2. There is a separate top-level folder for each distinct version of the DLL, and within those top-level folders there are Debug and Release folders. In the Debug folders you will find a DLL, a PDB, and an XML file for the given library, while the Release folder will have just a DLL. The DLL is the actual library (either Debug or Release flavor), the PDB is the debug information, and the XML file is the intellisense doc for use within Visual Studio. There are also files containing the documentation. If you have any questions, please check the forums on http://www.codeplex.com/DotNetZip" -s PleaseDonate.txt "DotNetZip is donationware. Consider donating. You'll feel good about it, and it's for a good cause. http://cheeso.members.winisp.net/DotNetZipDonate.aspx" Readme.txt License.txt License.zlib.txt License.bzip2.txt
%zipit% %rzipfile% -d zip-v%version% -s Readme.txt "DotNetZip Library Developer's Kit package, v%version% packed %stamp%. This is the DotNetZip library. It includes the classes in the Ionic.Zip namespace as well as the classes in the Ionic.Zlib namespace. Use this library if you want to manipulate ZIP files within .NET applications."
%zipit% %rzipfile% -d zip-v%version%\Debug -D Zip\bin\Debug Ionic.Zip.dll Ionic.Zip.xml Ionic.Zip.pdb
%zipit% %rzipfile% -d zip-v%version%\Release Zip\bin\Release\Ionic.Zip.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d zip-v%version%-Reduced -s Readme.txt "DotNetZip Reduced Library, Developer's Kit package, v%version% packed %stamp%. This is the reduced version of the DotNetZip library. It includes the classes in the Ionic.Zip namespace as well as the classes in the Ionic.Zlib namespace. The reduced library differs from the full library in that it lacks the ability to save self-Extracting archives (aka SFX files), and is much smaller than the full library."
%zipit% %rzipfile% -d zip-v%version%-Reduced\Debug -D "Zip Reduced\bin\Debug" Ionic.Zip.Reduced.dll Ionic.Zip.Reduced.pdb Ionic.Zip.Reduced.XML
%zipit% %rzipfile% -d zip-v%version%-Reduced\Release -D "Zip Reduced\bin\Release" Ionic.Zip.Reduced.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d zip-v%version%-CompactFramework -s Readme.txt "DotNetZip CF Library v%version% packed %stamp%. This assembly is built for the Compact Framework v2.0 or later, and includes all the classes in the Ionic.Zip namespace, as well as all the classes in the Ionic.Zlib namespace. Use this library if you want to manipulate ZIP files in smart-device applications, and if you want to use ZLIB compression directly, or if you want to use the compressing stream classes like GZipStream, DeflateStream, or ZlibStream."
%zipit% %rzipfile% -d zip-v%version%-CompactFramework\Debug -D "Zip CF\bin\Debug" Ionic.Zip.CF.dll Ionic.Zip.CF.pdb
%zipit% %rzipfile% -d zip-v%version%-CompactFramework\Release -D "Zip CF\bin\Release" Ionic.Zip.CF.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d zip-v%version%-Silverlight -s Readme.txt "Ionic.Zip Silverlight v%version% packed %stamp%. This is the Ionic.Zip library packaged for Silverlight 3.0 or later. Use this library if you want to manipulate ZIP files from within Silverlight applications."
%zipit% %rzipfile% -d zip-v%version%-Silverlight\Debug -D "Zip SL\bin\Debug" Ionic.Zip.dll Ionic.Zip.pdb Ionic.Zip.XML
%zipit% %rzipfile% -d zip-v%version%-Silverlight\Release -D "Zip SL\bin\Release" Ionic.Zip.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d zlib-v%version% -s Readme.txt "Ionic.Zlib v%version% packed %stamp%. This is the Ionic.Zlib assembly; it includes only the classes in the Ionic.Zlib namespace. Use this library if you want to take advantage of ZLIB compression directly, or if you want to use the compressing stream classes like GZipStream, DeflateStream, or ZlibStream."
%zipit% %rzipfile% -d zlib-v%version%\Debug -D Zlib\bin\Debug Ionic.Zlib.dll Ionic.Zlib.pdb Ionic.Zlib.XML
%zipit% %rzipfile% -d zlib-v%version%\Release -D Zlib\bin\Release Ionic.Zlib.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d zlib-v%version%-CompactFramework -s Readme.txt "Ionic.Zlib CF v%version% packed %stamp%. This is the Ionic.Zlib library packaged for the .NET Compact Framework v2.0 or later. Use this library if you want to take advantage of ZLIB compression directly from within Smart device applications, using the compressing stream classes like GZipStream, DeflateStream, or ZlibStream."
%zipit% %rzipfile% -d zlib-v%version%-CompactFramework\Debug -D "Zlib CF\bin\Debug" Ionic.Zlib.CF.dll Ionic.Zlib.CF.pdb Ionic.Zlib.CF.XML
%zipit% %rzipfile% -d zlib-v%version%-CompactFramework\Release -D "Zlib CF\bin\Release" Ionic.Zlib.CF.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d zlib-v%version%-Silverlight -s Readme.txt "Ionic.Zlib Silverlight v%version% packed %stamp%. This is the Ionic.Zlib library packaged for Silverlight 3.0 or later. Use this library if you want to take advantage of ZLIB compression directly from within Silverlight applications, using the compressing stream classes like GZipStream, DeflateStream, or ZlibStream."
%zipit% %rzipfile% -d zlib-v%version%-Silverlight\Debug -D "Zlib SL DLL\bin\Debug" Ionic.Zlib.dll Ionic.Zlib.pdb Ionic.Zlib.XML
%zipit% %rzipfile% -d zlib-v%version%-Silverlight\Release -D "Zlib SL DLL\bin\Release" Ionic.Zlib.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d bzip2-v%version% -s Readme.txt "Ionic.BZip2 v%version% packed %stamp%. This is the Ionic.BZip2 assembly; it includes only the classes in the Ionic.BZip2 namespace. Use this library if you want to take advantage of BZip2 compression directly, via the compressing stream classes like BZip2OutputStream, or BZip2InputStream."
%zipit% %rzipfile% -d bzip2-v%version%\Debug -D "BZip2\bin\Debug" Ionic.BZip2.dll Ionic.BZip2.pdb Ionic.BZip2.XML
%zipit% %rzipfile% -d bzip2-v%version%\Release -D "BZip2\bin\Release" Ionic.BZip2.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d bzip2-v%version%-CompactFramework -s Readme.txt "Ionic.BZip2 CF v%version% packed %stamp%. This is the Ionic.BZip2 library packaged for the .NET Compact Framework v2.0 or later. Use this library if you want to compress or decompress using BZip2, via the stream classes BZip2InputStream and BZip2OutputStream."
%zipit% %rzipfile% -d bzip2-v%version%-CompactFramework\Debug -D "BZip2 CF\bin\Debug" Ionic.BZip2.CF.dll Ionic.BZip2.CF.pdb Ionic.BZip2.CF.XML
%zipit% %rzipfile% -d bzip2-v%version%-CompactFramework\Release -D "BZip2 CF\bin\Release" Ionic.BZip2.CF.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d bzip2-v%version%-Silverlight -s Readme.txt "Ionic.BZip2 Silverlight v%version% packed %stamp%. This is the Ionic.BZip2 library packaged for Silverlight 3.0 or later. Use this library if you want to take advantage of BZip2 compression directly from within Silverlight applications, using the stream classes like BZip2InputStream, or BZip2OutputStream."
%zipit% %rzipfile% -d bzip2-v%version%-Silverlight\Debug -D "BZip2 SL DLL\bin\Debug" Ionic.BZip2.dll Ionic.BZip2.pdb Ionic.BZip2.XML
%zipit% %rzipfile% -d bzip2-v%version%-Silverlight\Release -D "BZip2 SL DLL\bin\Release" Ionic.BZip2.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d Tools ^
-s Readme.txt "These are tools that may be useful as you develop applications that manipulate zip files." ^
-D Tools\ZipIt\bin\Release Zipit.exe Ionic.Zip.dll ^
-D Tools\Unzip\bin\Release Unzip.exe ^
-D Tools\ConvertZipToSfx\bin\Release ConvertZipToSfx.exe ^
-D Tools\WinFormsApp\bin\Release DotNetZip-WinFormsTool.exe ^
-D Tools\BZip2\bin\Release BZip2.exe Ionic.BZip2.dll ^
-D Tools\GZip\bin\Release GZip.exe Ionic.Zlib.dll
@REM --------------------------------------------
%zipit% %rzipfile% -d VS2008-IntegratedHelp -s Readme.txt "This MSI installs the DotNetZip help content into the VisualStudio Integrated help system. After installing this MSI, pressing F1 within Visual Studio, with your cursor on a type defined within the DotNetZip assembly, will open the appropriate help within Visual Studio." -D Help-VS-Integrated\HelpIntegration\Debug DotNetZip-HelpIntegration.msi
%zipit% %rzipfile% -d Examples\WScript -D "Zip Tests\resources" VbsCreateZip-DotNetZip.vbs VbsUnZip-DotNetZip.vbs TestCheckZip.js
%zipit% %rzipfile% -d Examples -D Examples -r+ -E "name != *.cache and name != *.*~ and name != *.suo and name != *.user and name != #*.*# and name != *.vspscc and name != Examples\*\*\bin\*.* and name != Examples\*\*\obj\*.* and name != Examples\*\bin\*.* and name != Examples\*\obj\*.*"
%zipit% %rzipfile% -D %releaseDir% -E "name = DotNetZip-Documentation-*.zip"
cd %baseDir%
goto :EOF
--------------------------------------------
--------------------------------------------
:MakeRuntimeRedist
@REM example output zipfile name: DotNetZipLib-Runtime-v1.5.zip
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Making the user's redistributable zip...
echo.
set zipfile=DotNetZipLib-Runtime-v%version%.zip
set rzipfile=%releaseDir%\%zipfile%
echo zipfile is %rzipfile%
%zipit% %rzipfile% -s Contents.txt "This is the redistributable package for DotNetZip v%version%. Packed %stamp%. In this zip you will find a separate folder for each separate version of the DLL. In each folder there is a RELEASE build DLL, suitable for redistribution with your app. If you have any questions, please check the forums on http://www.codeplex.com/DotNetZip " -s DotNetZip-is-DonationWare.txt "DotNetZip is donationware. Consider donating. It's for a good cause. http://cheeso.members.winisp.net/DotNetZipDonate.aspx" Readme.txt License.txt License.zlib.txt License.bzip2.txt
%zipit% %rzipfile% -d zip-v%version% -s Readme.txt "DotNetZip Redistributable Library v%version% packed %stamp%" Zip\bin\Release\Ionic.Zip.dll
%zipit% %rzipfile% -d zip-v%version%-Reduced -s Readme.txt "DotNetZip Reduced Redistributable Library v%version% packed %stamp%" "Zip Reduced\bin\Release\Ionic.Zip.Reduced.dll"
%zipit% %rzipfile% -d zip-v%version%-CompactFramework -s Readme.txt "DotNetZip Library for .NET Compact Framework v%version% packed %stamp%" "Zip CF\bin\Release\Ionic.Zip.CF.dll"
%zipit% %rzipfile% -d zlib-v%version% -s Readme.txt "Ionic.Zlib Redistributable Library v%version% packed %stamp%" Zlib\bin\Release\Ionic.Zlib.dll
%zipit% %rzipfile% -d zlib-v%version%-CompactFramework -s Readme.txt "Ionic.Zlib Library for .NET Compact Framework v%version% packed %stamp%" "Zlib CF\bin\Release\Ionic.Zlib.CF.dll"
%zipit% %rzipfile% -d bzip2-v%version% -s Readme.txt "Ionic.BZip2 Redistributable Library v%version% packed %stamp%" BZip2\bin\Release\Ionic.BZip2.dll
%zipit% %rzipfile% -d bzip2-v%version%-CompactFramework -s Readme.txt "Ionic.BZip2 Library for .NET Compact Framework v%version% packed %stamp%" "BZip2 CF\bin\Release\Ionic.BZip2.CF.dll"
goto :EOF
--------------------------------------------
--------------------------------------------
:MakeSilverlightRedist
@REM example output zipfile name: DotNetZipLib-Silverlight-v1.9.zip
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Making the silverlight redistributable zip...
echo.
set zipfile=DotNetZipLib-Silverlight-v%version%.zip
set rzipfile=%releaseDir%\%zipfile%
echo zipfile is %rzipfile%
%zipit% %rzipfile% -s Contents.txt "This is the Silverlight redistributable package for DotNetZip v%version%. Packed %stamp%. There is an assembly for BZip2, one for ZLIB/Deflate/GZIP, and one for Zip, in the Release folder, and debug builds of the same in the Debug folder, for a total of 6 DLLs. You need to reference exactly one of those DLLs; which one depends on your application requirements. If you have any questions, please check the forums on http://dotnetzip.codeplex.com/discussions " -s DotNetZip-is-DonationWare.txt "DotNetZip is donationware. Consider donating. It's for a good cause. http://cheeso.members.winisp.net/DotNetZipDonate.aspx" License.txt License.zlib.txt License.bzip2.txt
%zipit% %rzipfile% -d Release "Zip SL\bin\Release\Ionic.Zip.dll" "Zlib SL DLL\bin\Release\Ionic.Zlib.dll" "BZip2 SL DLL\bin\Release\Ionic.BZip2.dll"
%zipit% %rzipfile% -d Debug -D "Zip SL\bin\Debug" Ionic.Zip.dll Ionic.Zip.xml Ionic.Zip.pdb -D "Zlib SL DLL\bin\Debug" Ionic.Zlib.dll Ionic.Zlib.xml Ionic.Zlib.pdb -D "BZip2 SL DLL\bin\Debug" Ionic.BZip2.dll Ionic.BZip2.xml Ionic.BZip2.pdb
goto :EOF
--------------------------------------------
--------------------------------------------
:MakeZipUtils
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Making the Zip Utils zip...
echo.
set zipfile=DotNetZipUtils-v%version%.zip
@REM for %%f in (%releaseDir%\%zipfile%) do set rzipfile=%%~ff
set rzipfile=%releaseDir%\%zipfile%
echo zipfile is %rzipfile%
%zipit% %rzipfile% -zc "Zip utilities v%version% packed %stamp%" -s Contents.txt "These are the DotNetZip utilities and tools, for DotNetZip v%version%. Packed %stamp%." -s I-Welcome-Donations.txt "DotNetZip is donationware. I welcome donations. It's for a good cause. http://cheeso.members.winisp.net/DotNetZipDonate.aspx" License.txt License.zlib.txt License.bzip2.txt
%zipit% %rzipfile% ^
-D Tools\ZipIt\bin\Release Zipit.exe Ionic.Zip.dll ^
-D Tools\Unzip\bin\Release Unzip.exe ^
-D Tools\ConvertZipToSfx\bin\Release ConvertZipToSfx.exe ^
-D Tools\WinFormsApp\bin\Release DotNetZip-WinFormsTool.exe ^
-D Tools\BZip2\bin\Release BZip2.exe Ionic.BZip2.dll ^
-D Tools\GZip\bin\Release GZip.exe Ionic.Zlib.dll
goto :EOF
--------------------------------------------
--------------------------------------------
:MakeIntegratedHelpMsi
@REM example output zipfile name: DotNetZip-HelpIntegration.msi
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Making the Integrated help MSI...
echo.
c:\vs2008\Common7\ide\devenv.exe Help-VS-Integrated\HelpIntegration.sln /build Debug /project HelpIntegration
echo waiting for Help-VS-Integrated\HelpIntegration\Debug\DotNetZip-HelpIntegration.msi
c:\dinoch\dev\dotnet\AwaitFile Help-VS-Integrated\HelpIntegration\Debug\DotNetZip-HelpIntegration.msi
@REM move Help-VS-Integrated\HelpIntegration\Debug\DotNetZip-HelpIntegration.msi %releaseDir%\DotNetZip-HelpIntegration.msi
goto :EOF
--------------------------------------------
--------------------------------------------
:MakeUtilsMsi
@REM example output zipfile name: DotNetZipUtils-v1.8.msi
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Making the Utils MSI...
echo.
cd "Setup Utils"
%MSBUILD% /p:Configuration=Release
cd ..
move "Setup Utils\bin\Release\en-us\DotNetZipUtils.msi" %releaseDir%\DotNetZipUtils-v%version%.msi
goto :EOF
--------------------------------------------
--------------------------------------------
:MakeRuntimeMsi
@REM example output zipfile name: DotNetZip-Runtime-v1.8.msi
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Making the Runtime MSI...
echo.
cd "Setup Runtime"
%MSBUILD% /p:Configuration=Release
cd ..
move "Setup Runtime\bin\Release\en-us\DotNetZip-Runtime.msi" %releaseDir%\DotNetZip-Runtime-v%version%.msi
goto :EOF
--------------------------------------------
--------------------------------------------
:MakeSrcZip
echo.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo.
echo Making the Source Zip...
echo.
@REM set zipfile=DotNetZip-src-v%version%.zip
cd..
@REM Delete any existing src zips
for %%f in (DotNetZip-src-v*.zip) do del %%f
%POWERSHELL% DotNetZip\ZipSrc.ps1
@REM edit in place to remove Ionic.pfx and Ionic.snk from the csproj files
@REM glob the filename:
for %%f in (DotNetZip-src-v*.zip) do set actualFilename=%%f
DotNetZip\EditCsproj.exe -z %actualFileName%
cd %baseDir%
move ..\%actualFileName% %releaseDir%
goto :EOF
--------------------------------------------
--------------------------------------------
:BACKTICK
call :GET_CMDLINE %*
set varspec=%1
setlocal EnableDelayedExpansion
for /f "usebackq delims==" %%I in (`%CMDLINE%`) do set output=%%I
endlocal & set %varspec%=%output%
goto :EOF
--------------------------------------------
--------------------------------------------
:GET_CMDLINE
@REM given a set of params [0..n], sets CMDLINE to
@REM the join of params[1..n]
setlocal enableextensions EnableDelayedExpansion
set PRIOR=
set PARAMS=
shift
:GET_PARAMs_LOOP
if [%1]==[] goto GET_PARAMS_DONE
set PARAMS=%PARAMS% %1
shift
goto GET_PARAMS_LOOP
:GET_PARAMS_DONE
REM strip the first space
set PARAMS=%PARAMS:~1%
endlocal & set CMDLINE=%PARAMS%
goto :EOF
--------------------------------------------
:END
@if exist c:\users\dino\dev\dotnet\pronounceword.exe (c:\users\dino\dev\dotnet\pronounceword.exe All Done > nul:)
echo.
echo release zips are in %releaseDir%
echo.
endlocal