File tree 5 files changed +43
-6
lines changed
5 files changed +43
-6
lines changed Original file line number Diff line number Diff line change 84
84
<IgnoreImportLibrary >true</IgnoreImportLibrary >
85
85
<LinkIncremental >false</LinkIncremental >
86
86
<PostBuildEventUseInBuild >true</PostBuildEventUseInBuild >
87
+ <PreBuildEventUseInBuild >false</PreBuildEventUseInBuild >
87
88
</PropertyGroup >
88
89
<PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Release|x64'" >
89
90
<IgnoreImportLibrary >true</IgnoreImportLibrary >
225
226
</Link >
226
227
<PostBuildEvent >
227
228
<Message >Create release zip</Message >
228
- <Command >$(ProjectDir)..\zip.exe -j $(TargetDir)/$(TargetName).zip $(TargetDir)DebugView++.exe $(TargetDir)DebugViewConsole.exe $(TargetDir)*.vsix </Command >
229
+ <Command >$(ProjectDir)..\createzip.bat $(TargetDir)</Command >
229
230
</PostBuildEvent >
230
231
<PreBuildEvent >
231
- <Command >$(ComSpec) /c UpdateBuildNr.cmd version.h version.wxi</Command >
232
- <Message >Update version numbers</Message >
232
+ <Command >
233
+ </Command >
234
+ <Message >
235
+ </Message >
233
236
</PreBuildEvent >
234
237
</ItemDefinitionGroup >
235
238
<ItemDefinitionGroup Condition =" '$(Configuration)|$(Platform)'=='Release|x64'" >
273
276
</Link >
274
277
<PostBuildEvent >
275
278
<Message >Create release zip</Message >
276
- <Command >$(ProjectDir)..\zip.exe -j $(TargetDir)/$(TargetName).zip $(TargetDir)DebugView++.exe $(TargetDir)DebugViewConsole.exe $(TargetDir)*.vsix </Command >
279
+ <Command >$(ProjectDir)..\createzip.bat $(TargetDir)</Command >
277
280
</PostBuildEvent >
278
281
<PreBuildEvent >
279
282
<Command >$(ComSpec) /c UpdateBuildNr.cmd version.h version.wxi</Command >
Original file line number Diff line number Diff line change 1
- #define VERSION 1,7,0,97
2
- #define VERSION_STR "1.7.0.97 "
1
+ #define VERSION 1,7,0,98
2
+ #define VERSION_STR "1.7.0.98 "
Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ pushd %~dp0
3
+
4
+ setlocal
5
+
6
+ if [%1 ] == [] (
7
+ echo Usage: createzip ^ < binary path^ >
8
+ goto exit
9
+ )
10
+
11
+ set bin_dir = %1
12
+
13
+ :: paths can be absolute or relative to the location of this batch file
14
+ set zip_bin = .\zip.exe
15
+ set upx_bin = .\upx.exe
16
+
17
+ if not exist %zip_bin% (
18
+ echo %zip_bin% does not exist, zipfile creation skipped
19
+ goto exit
20
+ )
21
+
22
+ if not exist %upx_bin% (
23
+ echo %upx_bin% does not exist, exe compression skipped
24
+ goto zip
25
+ )
26
+
27
+ :: UPX compresses executables in place about 40%, has no decompressing memory overhead and is extremely fast
28
+ %upx_bin% %bin_dir% \DebugView++.exe
29
+ %upx_bin% %bin_dir% \DebugViewConsole.exe
30
+
31
+ :zip
32
+ %zip_bin% -j %bin_dir% \DebugView++.zip %bin_dir% \DebugView++.exe %bin_dir% \DebugViewConsole.exe %bin_dir% \*.vsix
33
+
34
+ :exit
You can’t perform that action at this time.
0 commit comments