-
Notifications
You must be signed in to change notification settings - Fork 2
/
Make.Packages.bat
185 lines (185 loc) · 5.64 KB
/
Make.Packages.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
@echo off
set Company=LV-Crew
set Product=HostsManager
cls
echo Make.Packages.bat
echo.
echo Version: 2017.10.23a
echo.
echo.
echo Compile project in x86...
rem echo.
rem echo Compile Debug x86...
rem echo.
rem "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /maxcpucount /property:Platform=x86
rem echo.
rem pause
rem echo.
rem echo Compile Release x86...
rem echo.
rem "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /maxcpucount /property:Configuration=Release /property:Platform=x86
rem echo.
rem pause
echo.
echo Compile Debug x86...
echo.
"%PROGRAMFILES(X86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" /maxcpucount /property:Platform=x86
echo.
pause
echo.
echo Compile Release x86...
echo.
"%PROGRAMFILES(X86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" /maxcpucount /property:Configuration=Release /property:Platform=x86
echo.
pause
echo.
echo.
echo Compile project in x64...
rem echo.
rem echo Compile Debug x64...
rem echo.
rem "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /maxcpucount /property:Platform=x64
rem echo.
rem pause
rem echo.
rem echo Compile Release x64...
rem echo.
rem "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /maxcpucount /property:Configuration=Release /property:Platform=x64
rem echo.
rem pause
echo.
echo Compile Debug x64...
echo.
"%PROGRAMFILES(X86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" /maxcpucount /property:Platform=x64
echo.
pause
echo.
echo Compile Release x64...
echo.
"%PROGRAMFILES(X86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" /maxcpucount /property:Configuration=Release /property:Platform=x64
echo.
pause
echo.
echo.
echo Copy files together...
echo.
echo copy .\bin\x86\Release\%Product%.exe .\Packages\Win-x86.Archive\%Company%.%Product%.exe
copy .\bin\x86\Release\%Product%.exe .\Packages\Win-x86.Archive\%Company%.%Product%.exe
echo.
echo copy .\bin\x86\Release\%Product%.exe .\Packages\Win.Setup\%Company%.%Product%32.exe
copy .\bin\x86\Release\%Product%.exe .\Packages\Win.Setup\%Company%.%Product%32.exe
echo.
echo copy .\bin\x64\Release\%Product%.exe .\Packages\Win-x64.Archive\%Company%.%Product%.exe
copy .\bin\x64\Release\%Product%.exe .\Packages\Win-x64.Archive\%Company%.%Product%.exe
echo.
echo copy .\bin\x64\Release\%Product%.exe .\Packages\Win.Setup\%Company%.%Product%64.exe
copy .\bin\x64\Release\%Product%.exe .\Packages\Win.Setup\%Company%.%Product%64.exe
echo.
echo copy .\Branding\*.* .\bin\x86\Debug\
copy .\Branding\*.* .\bin\x86\Debug\
echo.
echo copy .\Branding\*.* .\bin\x64\Debug\
copy .\Branding\*.* .\bin\x64\Debug\
echo.
echo copy .\Branding\*.* .\bin\x86\Release\
copy .\Branding\*.* .\bin\x86\Release\
echo.
echo copy .\Branding\*.* .\bin\x64\Release\
copy .\Branding\*.* .\bin\x64\Release\
echo.
echo copy .\Branding\*.* .\Packages\Win-x64.Archive\
copy .\Branding\*.* .\Packages\Win-x64.Archive\
echo.
echo copy .\Branding\*.* .\Packages\Win-x86.Archive\
copy .\Branding\*.* .\Packages\Win-x86.Archive\
echo.
echo copy .\Branding\*.* .\Packages\Win.Setup\
copy .\Branding\*.* .\Packages\Win.Setup\
echo.
echo copy .\README.md .\Packages\Win-x64.Archive\
copy .\README.md .\Packages\Win-x64.Archive\
echo.
echo copy .\README.md .\Packages\Win-x86.Archive\
copy .\README.md .\Packages\Win-x86.Archive\
echo.
echo copy .\README.md .\Packages\Win.Setup\
copy .\README.md .\Packages\Win.Setup\
echo.
echo copy .\docs.VPS\readme.html .\bin\x86\Debug\Readme.html
copy .\docs\readme.html .\bin\x86\Debug\Readme.html
echo.
echo copy .\docs.VPS\readme.html .\bin\x64\Debug\Readme.html
copy .\docs\readme.html .\bin\x64\Debug\Readme.html
echo.
echo copy .\docs.VPS\readme.html .\bin\x86\Release\Readme.html
copy .\docs\readme.html .\bin\x86\Release\Readme.html
echo.
echo copy .\docs.VPS\readme.html .\bin\x64\Release\Readme.html
copy .\docs\readme.html .\bin\x64\Release\Readme.html
echo.
echo copy .\docs.VPS\readme.html .\Packages\Win-x64.Archive\Readme.html
copy .\docs\readme.html .\Packages\Win-x64.Archive\Readme.html
echo.
echo copy .\docs.VPS\readme.html .\Packages\Win-x86.Archive\Readme.html
copy .\docs\readme.html .\Packages\Win-x86.Archive\Readme.html
echo.
echo copy .\docs.VPS\readme.html .\Packages\Win.Setup\Readme.html
copy .\docs\readme.html .\Packages\Win.Setup\Readme.html
echo.
echo copy .\License.rtf .\Packages\Win-x64.Archive\
copy .\License.rtf .\Packages\Win-x64.Archive\
echo.
echo copy .\License.rtf .\Packages\Win-x86.Archive\
copy .\License.rtf .\Packages\Win-x86.Archive\
echo.
echo copy .\License.rtf .\Packages\Win.Setup\
copy .\License.rtf .\Packages\Win.Setup\
echo.
pause.
echo.
echo.
echo Make Packages...
echo.
echo Make Win-x64.zip...
echo.
del .\Packages\Win-x64.zip
rem echo.
"%PROGRAMFILES%\WinZip\WZZIP.exe" -p -r .\Packages\Win-x64.zip .\Packages\Win-x64.Archive\*.*
echo.
echo Make Win-x64.7z...
echo.
del .\Packages\Win-x64.7z
rem echo.
.\Make\7za a .\Packages\Win-x64.7z .\Packages\Win-x64.Archive\*.*
.\Make\7za a .\Packages\Win-x64.7z .\Packages\Win-x64.Archive\certutil
echo.
echo Make Win-x86.zip...
echo.
del .\Packages\Win-x86.zip
rem echo.
"%PROGRAMFILES%\WinZip\WZZIP.exe" -p -r .\Packages\Win-x86.zip .\Packages\Win-x86.Archive\*.*
echo.
echo Make Win-x86.7z...
echo.
del .\Packages\Win-x86.7z
rem echo.
.\Make\7za a .\Packages\Win-x86.7z .\Packages\Win-x86.Archive\*.*
.\Make\7za a .\Packages\Win-x86.7z .\Packages\Win-x86.Archive\certutil
echo.
pause
echo.
echo Make Win.NSIS.exe...
echo.
del .\Packages\Win.NSIS.exe
rem echo.
"%PROGRAMFILES(X86)%\NSIS\makensis.exe" .\Make\%Product%.Installer.NSIS.Win.nsi
echo.
echo Move EXE to .\Packages\...
move .\Make\Win.NSIS.exe .\Packages\
echo.
echo.
echo --------------- All done! ---------------
echo.
echo.
pause
echo.