Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/installer/release.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10853 - (show annotations) (download) (as text)
Wed Aug 16 15:07:58 2023 UTC (6 months, 3 weeks ago) by zmatsuo
File MIME type: application/x-msdos-program
File size: 6570 byte(s)
buildtools/cygwin64 に discord通知に使用するパッケージもインストール

- buildtools/install_cygwin.cmake
  - discoard通知に使用するパッケージもインストールするようにした
- buildtools/find_cygwin.bat
  - ビルドで使用するcygwinを探す
  - find_cygwin.bat を使用するようにした
    - installer/release.bat
    - ci_scripts/notify.bat
- ci_scripts/notify_discord.pl
  - 改行コードを LF に変更した
1 @echo off
2 setlocal
3 set CUR=%~dp0
4 cd /d %CUR%
5
6 rem set VS_VERSION=2019
7 if "%VS_VERSION%" == "" set VS_VERSION=2022
8
9 if "%APPVEYOR%" == "True" set NOPAUSE=1
10 if exist ..\buildtools\svnrev\sourcetree_info.bat del ..\buildtools\svnrev\sourcetree_info.bat
11
12 call :setup_tools_env
13
14 echo =======
15 echo 1. force download and rebuild libs / rebuild Tera Term, installer, archive
16 echo 2. download and build libs / rebuild Tera Term, installer, archive
17 echo 3. download and build libs / build Tera Term, installer, archive
18 echo 4. download and build libs
19 echo 5. build libs / rebuild Tera Term, installer, archive
20 echo 6. build libs / build Tera Term, installer, archive
21 echo 7. exec cmd.exe
22 echo 8. check tools
23 echo 9. exit
24
25 if "%1" == "" (
26 set /p no="select no "
27 ) else (
28 set no=%1
29 )
30 echo %no%
31
32 if "%no%" == "1" (
33 call :download_libs force
34 call :build_libs
35 call :build_teraterm rebuild
36 )
37
38 if "%no%" == "2" (
39 call :download_libs
40 call :build_libs
41 call :build_teraterm rebuild
42 )
43
44 if "%no%" == "3" (
45 call :download_libs
46 call :build_libs
47 call :build_teraterm
48 )
49
50 if "%no%" == "4" (
51 call :download_libs
52 call :build_libs
53 )
54
55 if "%no%" == "5" (
56 call :build_teraterm rebuild
57 )
58
59 if "%no%" == "6" (
60 call :build_teraterm
61 )
62
63 if "%no%" == "7" (
64 call :exec_cmd
65 )
66
67 if "%no%" == "8" (
68 call :check_tools
69 )
70
71 if not "%NOPAUSE%" == "1" pause
72 exit /b 0
73
74
75 rem ####################
76 :download_libs
77
78 setlocal
79 cd /d %CUR%..\libs
80
81 set OPT=
82 if "%1" == "force" set OPT=-DFORCE_DOWNLOAD=on
83 %CMAKE% %OPT% -P download.cmake
84 if errorlevel 1 (
85 echo download error
86 exit 1
87 )
88
89 endlocal
90 exit /b 0
91
92 rem ####################
93 :build_libs
94
95 setlocal
96 cd /d %CUR%..\libs
97 call buildall.bat
98 endlocal
99 exit /b 0
100
101 rem ####################
102 :build_teraterm
103
104 setlocal
105 cd /d %CUR%
106 call ..\buildtools\svnrev\svnrev.bat
107 call ..\buildtools\svnrev\sourcetree_info.bat
108
109 if "%RELEASE%" == "1" (
110 call build.bat rebuild
111 call makearchive.bat release
112 ) else if "%1" == "rebuild" (
113 call build.bat rebuild
114 call makearchive.bat
115 ) else (
116 call makearchive.bat
117 )
118 call iscc.bat
119
120 endlocal
121 exit /b 0
122
123 rem ####################
124 :setup_tools_env
125
126 call %CUR%..\buildtools\find_cygwin.bat
127 if not "%CYGWIN_PATH%" == "" goto cygwin_path_pass
128 echo cygwin not found
129 if not "%NOPAUSE%" == "1" pause
130 exit
131 :cygwin_path_pass
132
133 set VS_BASE=C:\Program Files\Microsoft Visual Studio\%VS_VERSION%
134 if exist "%VS_BASE%" goto vs_base_pass
135 set VS_BASE=C:\Program Files (x86)\Microsoft Visual Studio\%VS_VERSION%
136 :vs_base_pass
137
138
139 if exist toolinfo.bat (
140 echo found toolinfo.bat
141 call toolinfo.bat
142 echo toolinfo.bat ok
143 ) else (
144 set PATH=
145 )
146
147 set PATH=%SystemRoot%;%PATH%
148 set PATH=%SystemRoot%\system32;%PATH%
149 call :search_perl
150 call :search_svn
151 call :search_iscc
152 set PATH=%SVN_PATH%;%PATH%
153 set PATH=%PERL_PATH%;%PATH%
154 call :set_vs_env
155 call :search_cmake
156 set PATH=%CMAKE_PATH%;%PATH%
157 set PATH=%PATH%;%CYGWIN_PATH%
158 exit /b 0
159
160 rem ####################
161 :search_perl
162 if exist %PERL_PATH%\perl.exe (
163 set PERL=%PERL_PATH%\perl.exe
164 exit /b 0
165 )
166
167 set PERL=perl.exe
168 where %PERL% > nul 2>&1
169 if %errorlevel% == 0 exit /b 0
170 set PERL=%CUR%..\buildtools\cygwin64\bin\perl.exe
171 if exist %PERL% exit /b 0
172 set PERL=%CUR%..\buildtools\perl\perl\bin\perl.exe
173 if exist %PERL% exit /b 0
174 set PERL=C:\Strawberry\perl\bin\perl.exe
175 if exist %PERL% exit /b 0
176 set PERL=C:\Perl64\bin\perl.exe
177 if exist %PERL% exit /b 0
178 set PERL=C:\Perl\bin\perl.exe
179 if exist %PERL% exit /b 0
180 set PERL=C:\cygwin64\bin\perl.exe
181 if exist %PERL% exit /b 0
182 set PERL=C:\cygwin\bin\perl.exe
183 if exist %PERL% exit /b 0
184 echo perl not found
185 if not "%NOPAUSE%" == "1" pause
186 exit
187
188 rem ####################
189 :search_svn
190 if exist %SVN_PATH%\svn.exe (
191 set SVN=%SVN_PATH%\svn.exe
192 exit /b 0
193 )
194
195 set SVN=svn.exe
196 where %SVN% > nul 2>&1
197 if %errorlevel% == 0 exit /b 0
198 set SVN_PATH=C:\Program Files (x86)\Subversion\bin
199 set SVN="%SVN_PATH%\svn.exe"
200 if exist %SVN% exit /b 0
201 set SVN_PATH=C:\Program Files\TortoiseSVN\bin
202 set SVN="%SVN_PATH%\svn.exe"
203 if exist %SVN% exit /b 0
204 echo svn not found
205 if not "%NOPAUSE%" == "1" pause
206 exit
207
208 rem ####################
209 :search_cmake
210 if exist %CMAKE_PATH%\cmake.exe (
211 set CMAKE="%CMAKE_PATH%\cmake.exe"
212 exit /b 0
213 )
214 if "%CMAKE%" == "" set CMAKE="cmake.exe"
215
216 where %CMAKE% > nul 2>&1
217 if %errorlevel% == 0 exit /b 0
218 set CMAKE_PATH=C:\Program Files\CMake\bin
219 set CMAKE="%CMAKE_PATH%\cmake.exe"
220 if exist %CMAKE% exit /b 0
221 set CMAKE_PATH=%VCINSTALLDIR%\..\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
222 set CMAKE="%CMAKE_PATH%\cmake.exe"
223 if exist %CMAKE% exit /b 0
224 echo cmake not found
225 if not "%NOPAUSE%" == "1" pause
226 exit
227
228 rem ####################
229 :search_iscc
230 if [%INNO_SETUP%] == [] goto search_iscc_1
231 if exist %INNO_SETUP% (
232 exit /b 0
233 )
234 echo INNO_SETUP=%INNO_SETUP%
235 goto search_iscc_not_found
236
237 :search_iscc_1
238 set INNO_SETUP=%CUR%..\buildtools\innosetup6\bin\ISCC.exe
239 if exist %INNO_SETUP% exit /b 0
240 set INNO_SETUP="C:\Program Files (x86)\Inno Setup 6\iscc.exe"
241 if exist %INNO_SETUP% exit /b 0
242 :search_iscc_not_found
243 echo iscc(inno setup) not found
244 if not "%NOPAUSE%" == "1" pause
245 exit
246
247 rem ####################
248 :set_vs_env
249
250 if exist "%VS_BASE%\Community" (
251 call "%VS_BASE%\Community\VC\Auxiliary\Build\vcvars32.bat"
252 exit /b 0
253 )
254 if exist "%VS_BASE%\Professional" (
255 call "%VS_BASE%\Profssional\VC\Auxiliary\Build\vcvars32.bat"
256 exit /b 0
257 )
258 if exist "%VS_BASE%\Enterprise" (
259 call "%VS_BASE%\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
260 exit /b 0
261 )
262 :vs_not_found
263 echo Visual Studio not found
264 echo VS_BASE=%VS_BASE%
265 if not "%NOPAUSE%" == "1" pause
266 exit
267
268 rem ####################
269 :exec_cmd
270 call ..\buildtools\svnrev\svnrev.bat
271 call ..\buildtools\svnrev\sourcetree_info.bat
272 cmd
273 exit /b 0
274
275 rem ####################
276 :check_tools
277
278 echo cmd(windows)
279 ver
280
281 echo Visual Studio
282 echo VS_BASE=%VS_BASE%
283 cl
284
285 echo svn
286 where svn
287 echo SVN_PATH=%SVN_PATH%
288 echo SVN=%SVN%
289 svn --version
290
291 echo perl
292 where perl
293 echo PERL_PATH=%PERL_PATH%
294 echo PERL=%PERL%
295 %PERL% --version
296
297 echo cmake
298 where cmake
299 echo CMAKE_PATH=%CMAKE_PATH%
300 echo CMAKE=%CMAKE%
301 %CMAKE% --version
302
303 echo cygwin
304 echo CYGWIN_PATH=%CYGWIN_PATH%
305 cygcheck -c base-cygwin
306 cygcheck -c gcc-core
307 cygcheck -c w32api-headers
308 cygcheck -c make
309
310 echo inno setup
311 echo INNO_SETUP=%INNO_SETUP%
312 %INNO_SETUP% /?
313
314 exit /b 0

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26