1 | @echo off
|
---|
2 | rem $Id: Combined-3-RepackAdditions.cmd 96407 2022-08-22 17:43:14Z vboxsync $
|
---|
3 | rem rem @file
|
---|
4 | rem Windows NT batch script for repacking signed amd64 and x86 drivers.
|
---|
5 | rem
|
---|
6 |
|
---|
7 | rem
|
---|
8 | rem Copyright (C) 2018-2022 Oracle and/or its affiliates.
|
---|
9 | rem
|
---|
10 | rem This file is part of VirtualBox base platform packages, as
|
---|
11 | rem available from https://www.virtualbox.org.
|
---|
12 | rem
|
---|
13 | rem This program is free software; you can redistribute it and/or
|
---|
14 | rem modify it under the terms of the GNU General Public License
|
---|
15 | rem as published by the Free Software Foundation, in version 3 of the
|
---|
16 | rem License.
|
---|
17 | rem
|
---|
18 | rem This program is distributed in the hope that it will be useful, but
|
---|
19 | rem WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
20 | rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
21 | rem General Public License for more details.
|
---|
22 | rem
|
---|
23 | rem You should have received a copy of the GNU General Public License
|
---|
24 | rem along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
25 | rem
|
---|
26 | rem SPDX-License-Identifier: GPL-3.0-only
|
---|
27 | rem
|
---|
28 |
|
---|
29 |
|
---|
30 | setlocal ENABLEEXTENSIONS
|
---|
31 | setlocal
|
---|
32 |
|
---|
33 | rem
|
---|
34 | rem Globals and checks for required enviornment variables.
|
---|
35 | rem
|
---|
36 | if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & goto end_failed)
|
---|
37 | if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & goto end_failed)
|
---|
38 | set _MY_SCRIPT_DIR=%~dp0
|
---|
39 | set _MY_SAVED_CD=%CD%
|
---|
40 | set _MY_VER_REV=@VBOX_VERSION_STRING@r@VBOX_SVN_REV@
|
---|
41 |
|
---|
42 | rem
|
---|
43 | rem Parse arguments.
|
---|
44 | rem
|
---|
45 | set _MY_OPT_UNTAR_DIR=%_MY_SCRIPT_DIR%\..\..\..\
|
---|
46 | for %%i in (%_MY_OPT_UNTAR_DIR%) do set _MY_OPT_UNTAR_DIR=%%~fi
|
---|
47 | set _MY_OPT_BUILD_TYPE=@KBUILD_TYPE@
|
---|
48 | set _MY_OPT_OUTDIR=%_MY_OPT_UNTAR_DIR%\output
|
---|
49 | set _MY_OPT_SRC_DIR=%_MY_SCRIPT_DIR%\resources\
|
---|
50 |
|
---|
51 | :argument_loop
|
---|
52 | if ".%1" == "." goto no_more_arguments
|
---|
53 |
|
---|
54 | if ".%1" == ".-h" goto opt_h
|
---|
55 | if ".%1" == ".-?" goto opt_h
|
---|
56 | if ".%1" == "./h" goto opt_h
|
---|
57 | if ".%1" == "./H" goto opt_h
|
---|
58 | if ".%1" == "./?" goto opt_h
|
---|
59 | if ".%1" == ".-help" goto opt_h
|
---|
60 | if ".%1" == ".--help" goto opt_h
|
---|
61 |
|
---|
62 | if ".%1" == ".-o" goto opt_o
|
---|
63 | if ".%1" == ".--outdir" goto opt_o
|
---|
64 | if ".%1" == ".-s" goto opt_s
|
---|
65 | if ".%1" == ".--source" goto opt_s
|
---|
66 | if ".%1" == ".--signed-amd64" goto opt_signed_amd64
|
---|
67 | if ".%1" == ".--signed-x86" goto opt_signed_x86
|
---|
68 | if ".%1" == ".-t" goto opt_t
|
---|
69 | if ".%1" == ".--build-type" goto opt_t
|
---|
70 | if ".%1" == ".-u" goto opt_u
|
---|
71 | if ".%1" == ".--vboxall-untar-dir" goto opt_u
|
---|
72 | echo syntax error: Unknown option: %1
|
---|
73 | echo Try --help to list valid options.
|
---|
74 | goto end_failed
|
---|
75 |
|
---|
76 | :argument_loop_next_with_value
|
---|
77 | shift
|
---|
78 | shift
|
---|
79 | goto argument_loop
|
---|
80 |
|
---|
81 | :opt_h
|
---|
82 | echo Toplevel combined package: Repack the guest additions.
|
---|
83 | echo .
|
---|
84 | echo Usage: Combined-3-RepackAdditions.cmd [-o output-dir]
|
---|
85 | echo [-u/--vboxall-dir unpacked-vboxall-dir] [-t build-type]
|
---|
86 | echo [--signed-amd64 signed-amd64.zip]
|
---|
87 | echo [--signed-x86 signed-x86.zip]
|
---|
88 | echo
|
---|
89 | echo .
|
---|
90 | echo Default -u/--vboxall-untar-dir value: %_MY_OPT_UNTAR_DIR%
|
---|
91 | echo Default -o/--outdir value: %_MY_OPT_OUTDIR%
|
---|
92 | echo Default -t/--build-type value: %_MY_OPT_BUILD_TYPE%
|
---|
93 | echo .
|
---|
94 | goto end_failed
|
---|
95 |
|
---|
96 | :opt_o
|
---|
97 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
98 | set _MY_OPT_OUTDIR=%~f2
|
---|
99 | goto argument_loop_next_with_value
|
---|
100 |
|
---|
101 | :opt_s
|
---|
102 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
103 | set _MY_OPT_SRC_DIR=%~f2
|
---|
104 | goto argument_loop_next_with_value
|
---|
105 |
|
---|
106 | :opt_signed_amd64
|
---|
107 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
108 | set _MY_OPT_SIGNED_AMD64=%~f2
|
---|
109 | goto argument_loop_next_with_value
|
---|
110 |
|
---|
111 | :opt_signed_x86
|
---|
112 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
113 | set _MY_OPT_SIGNED_X86=%~f2
|
---|
114 | goto argument_loop_next_with_value
|
---|
115 |
|
---|
116 | :opt_t
|
---|
117 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
118 | set _MY_OPT_BUILD_TYPE=%~2
|
---|
119 | goto argument_loop_next_with_value
|
---|
120 |
|
---|
121 | :opt_u
|
---|
122 | if ".%~2" == "." goto syntax_error_missing_value
|
---|
123 | set _MY_OPT_UNTAR_DIR=%~f2
|
---|
124 | goto argument_loop_next_with_value
|
---|
125 |
|
---|
126 | :syntax_error_missing_value
|
---|
127 | echo syntax error: missing or empty option value after %1
|
---|
128 | goto end_failed
|
---|
129 |
|
---|
130 | :error_vboxall_untar_dir_not_found
|
---|
131 | echo syntax error: The VBoxAll untar directory was not found: "%_MY_OPT_UNTAR_DIR%"
|
---|
132 | goto end_failed
|
---|
133 |
|
---|
134 | :error_amd64_bindir_not_found
|
---|
135 | echo syntax error: The AMD64 bin directory was not found: "%_MY_BINDIR_AMD64%"
|
---|
136 | goto end_failed
|
---|
137 |
|
---|
138 | :error_x86_bindir_not_found
|
---|
139 | echo syntax error: The X86 bin directory was not found: "%_MY_BINDIR_X86%"
|
---|
140 | goto end_failed
|
---|
141 |
|
---|
142 | :error_amd64_repack_dir_not_found
|
---|
143 | echo syntax error: The AMD64 repack directory was not found: "%_MY_REPACK_DIR_AMD64%"
|
---|
144 | goto end_failed
|
---|
145 |
|
---|
146 | :error_x86_repack_dir_not_found
|
---|
147 | echo syntax error: The X86 repack directory was not found: "%_MY_REPACK_DIR_X86%"
|
---|
148 | goto end_failed
|
---|
149 |
|
---|
150 | :error_extpack_not_found
|
---|
151 | echo syntax error: Specified extension pack not found: "%_MY_OPT_EXTPACK%"
|
---|
152 | goto end_failed
|
---|
153 |
|
---|
154 | :error_enterprise_extpack_not_found
|
---|
155 | echo syntax error: Specified enterprise extension pack not found: "%_MY_OPT_EXTPACK_ENTERPRISE%"
|
---|
156 | goto end_failed
|
---|
157 |
|
---|
158 | :error_signed_amd64_not_found
|
---|
159 | echo syntax error: Zip with signed AMD64 drivers not found: "%_MY_OPT_SIGNED_AMD64%"
|
---|
160 | goto end_failed
|
---|
161 |
|
---|
162 | :error_signed_x86_not_found
|
---|
163 | echo syntax error: Zip with signed X86 drivers not found: "%_MY_OPT_SIGNED_X86%"
|
---|
164 | goto end_failed
|
---|
165 |
|
---|
166 | :error_src_dir_not_found
|
---|
167 | echo syntax error: src directory not found: "%_MY_OPT_SRC_DIR%"
|
---|
168 | goto end_failed
|
---|
169 |
|
---|
170 |
|
---|
171 | :no_more_arguments
|
---|
172 | rem
|
---|
173 | rem Validate and adjust specified options.
|
---|
174 | rem
|
---|
175 |
|
---|
176 | if not exist "%_MY_OPT_UNTAR_DIR%" goto error_vboxall_untar_dir_not_found
|
---|
177 |
|
---|
178 | set _MY_BINDIR_AMD64=%_MY_OPT_UNTAR_DIR%\win.amd64\%_MY_OPT_BUILD_TYPE%\bin\additions
|
---|
179 | set _MY_BINDIR_X86=%_MY_OPT_UNTAR_DIR%\win.x86\%_MY_OPT_BUILD_TYPE%\bin\additions
|
---|
180 | if not exist "%_MY_BINDIR_AMD64%" goto error_amd64_bindir_not_found
|
---|
181 | if not exist "%_MY_BINDIR_X86%" goto error_x86_bindir_not_found
|
---|
182 |
|
---|
183 | set _MY_REPACK_DIR_AMD64=%_MY_OPT_UNTAR_DIR%\win.amd64\%_MY_OPT_BUILD_TYPE%\repackadd
|
---|
184 | set _MY_REPACK_DIR_X86=%_MY_OPT_UNTAR_DIR%\win.x86\%_MY_OPT_BUILD_TYPE%\repackadd
|
---|
185 | if not exist "%_MY_REPACK_DIR_AMD64%" goto error_amd64_repack_dir_not_found
|
---|
186 | if not exist "%_MY_REPACK_DIR_X86%" goto error_x86_repack_dir_not_found
|
---|
187 |
|
---|
188 | if not ".%_MY_OPT_SIGNED_AMD64%" == "." goto skip_set_default_amd64_signed
|
---|
189 | set _MY_OPT_SIGNED_AMD64="%_MY_OPT_OUTDIR%/VBoxDrivers-@VBOX_VERSION_STRING@r@VBOX_SVN_REV@-amd64.cab.Signed.zip"
|
---|
190 | :skip_set_default_amd64_signed
|
---|
191 |
|
---|
192 | if not ".%_MY_OPT_SIGNED_X86%" == "." goto skip_set_default_x86_signed
|
---|
193 | set _MY_OPT_SIGNED_X86="%_MY_OPT_OUTDIR%/VBoxDrivers-@VBOX_VERSION_STRING@r@VBOX_SVN_REV@-x86.cab.Signed.zip"
|
---|
194 | :skip_set_default_x86_signed
|
---|
195 |
|
---|
196 | if not exist "%_MY_OPT_SIGNED_AMD64%" goto error_signed_amd64_not_found
|
---|
197 | if not exist "%_MY_OPT_SIGNED_X86%" goto error_signed_x86_not_found
|
---|
198 |
|
---|
199 | rem Make sure the output dir exists.
|
---|
200 | if not exist "%_MY_OPT_OUTDIR%" (mkdir "%_MY_OPT_OUTDIR%" || goto end_failed)
|
---|
201 |
|
---|
202 | if not exist "%_MY_OPT_SRC_DIR%" goto error_src_dir_not_found
|
---|
203 |
|
---|
204 | rem
|
---|
205 | rem Unpacking the two driver zips.
|
---|
206 | rem
|
---|
207 | echo **************************************************************************
|
---|
208 | echo * AMD64: Unpacking signed drivers...
|
---|
209 | echo **************************************************************************
|
---|
210 | cd /d "%_MY_REPACK_DIR_AMD64%" || goto end_failed
|
---|
211 | call "%_MY_REPACK_DIR_AMD64%\UnpackBlessedDrivers.cmd" -n -b "%_MY_BINDIR_AMD64%" -i "%_MY_OPT_SIGNED_AMD64%" --guest-additions || goto end_failed
|
---|
212 | echo .
|
---|
213 |
|
---|
214 | echo **************************************************************************
|
---|
215 | echo * X86: Unpacking signed drivers...
|
---|
216 | echo **************************************************************************
|
---|
217 | cd /d "%_MY_REPACK_DIR_X86%" || goto end_failed
|
---|
218 | call "%_MY_REPACK_DIR_X86%\UnpackBlessedDrivers.cmd" -n -b "%_MY_BINDIR_X86%" -i "%_MY_OPT_SIGNED_X86%" --guest-additions || goto end_failed
|
---|
219 | echo .
|
---|
220 |
|
---|
221 |
|
---|
222 | rem
|
---|
223 | rem Building amd64 installer
|
---|
224 | rem
|
---|
225 | echo **************************************************************************
|
---|
226 | echo * Building amd64 installer
|
---|
227 | echo **************************************************************************
|
---|
228 |
|
---|
229 | del %_MY_OPT_UNTAR_DIR%\win.amd64\release\bin\additions\VBoxWindowsAdditions-amd64.exe
|
---|
230 | cp %_MY_REPACK_DIR_AMD64%\..\obj\uninst.exe %_MY_REPACK_DIR_AMD64%
|
---|
231 |
|
---|
232 | rem TBD: that has to be converted to invoke auto-generated .cmd
|
---|
233 |
|
---|
234 | %KBUILD_BIN_PATH%\kmk_redirect.exe -C %_MY_OPT_SRC_DIR% ^
|
---|
235 | -E "PATH_OUT=%_MY_REPACK_DIR_AMD64%\.." ^
|
---|
236 | -E "PATH_TARGET=%_MY_REPACK_DIR_AMD64%" ^
|
---|
237 | -E "PATH_TARGET_X86=%_MY_REPACK_DIR_X86%\resources" ^
|
---|
238 | -E "VBOX_PATH_ADDITIONS_WIN_X86=%_MY_REPACK_DIR_AMD64%\..\bin\additions" ^
|
---|
239 | -E "VBOX_PATH_DIFX=%KBUILD_DEVTOOLS%\win.amd64\DIFx\v2.1-r3" ^
|
---|
240 | -E "VBOX_VENDOR=Oracle Corporation" -E "VBOX_VENDOR_SHORT=Oracle" -E "VBOX_PRODUCT=Oracle VM VirtualBox" ^
|
---|
241 | -E "VBOX_C_YEAR=@VBOX_C_YEAR@" -E "VBOX_VERSION_STRING=@VBOX_VERSION_STRING@" -E "VBOX_VERSION_STRING_RAW=@VBOX_VERSION_STRING_RAW@" ^
|
---|
242 | -E "VBOX_VERSION_MAJOR=@VBOX_VERSION_MAJOR@" -E "VBOX_VERSION_MINOR=@VBOX_VERSION_MINOR@" -E "VBOX_VERSION_BUILD=@VBOX_VERSION_BUILD@" -E "VBOX_SVN_REV=@VBOX_SVN_REV@" ^
|
---|
243 | -E "VBOX_WINDOWS_ADDITIONS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-vista.ico" ^
|
---|
244 | -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-nsis.ico" ^
|
---|
245 | -E "VBOX_WITH_GUEST_INSTALL_HELPER=1" -E "VBOX_WITH_GUEST_INSTALLER_UNICODE=1" -E "VBOX_WITH_LICENSE_INSTALL_RTF=1" ^
|
---|
246 | -E "VBOX_WITH_WDDM=1" -E "VBOX_WITH_MESA3D=1" -E "VBOX_BRAND_WIN_ADD_INST_DLGBMP=%_MY_OPT_SRC_DIR%\welcome.bmp" ^
|
---|
247 | -E "VBOX_BRAND_LICENSE_RTF=%_MY_OPT_SRC_DIR%\License-gpl-3.0.rtf" -E "KBUILD_TYPE=%_MY_OPT_BUILD_TYPE%" -E "KBUILD_TARGET_ARCH=amd64" ^
|
---|
248 | -- %KBUILD_DEVTOOLS%/win.x86/nsis/v3.04-log/makensis.exe /NOCD /V2 ^
|
---|
249 | "/DVBOX_SIGN_ADDITIONS=1" ^
|
---|
250 | "/DEXTERNAL_UNINSTALLER=1" ^
|
---|
251 | "%_MY_OPT_SRC_DIR%\VBoxGuestAdditions.nsi"
|
---|
252 |
|
---|
253 | rem
|
---|
254 | rem Building amd64 installer
|
---|
255 | rem
|
---|
256 | echo **************************************************************************
|
---|
257 | echo * Building x86 installer
|
---|
258 | echo **************************************************************************
|
---|
259 |
|
---|
260 | del %_MY_OPT_UNTAR_DIR%\win.x86\release\bin\additions\VBoxWindowsAdditions-x86.exe
|
---|
261 | cp %_MY_REPACK_DIR_X86%\..\obj\uninst.exe %_MY_REPACK_DIR_X86%\
|
---|
262 |
|
---|
263 | rem TBD: that has to be converted to invoke auto-generated .cmd
|
---|
264 |
|
---|
265 | %KBUILD_BIN_PATH%\kmk_redirect.exe -C %_MY_OPT_SRC_DIR% ^
|
---|
266 | -E "PATH_OUT=%_MY_REPACK_DIR_X86%\.." ^
|
---|
267 | -E "PATH_TARGET=%_MY_REPACK_DIR_X86%" ^
|
---|
268 | -E "PATH_TARGET_X86=%_MY_REPACK_DIR_X86%\resources" ^
|
---|
269 | -E "VBOX_PATH_ADDITIONS_WIN_X86=%_MY_REPACK_DIR_X86%\..\bin\additions" ^
|
---|
270 | -E "VBOX_PATH_DIFX=%KBUILD_DEVTOOLS%\win.x86\DIFx\v2.1-r3" ^
|
---|
271 | -E "VBOX_VENDOR=Oracle Corporation" -E "VBOX_VENDOR_SHORT=Oracle" -E "VBOX_PRODUCT=Oracle VM VirtualBox" ^
|
---|
272 | -E "VBOX_C_YEAR=@VBOX_C_YEAR@" -E "VBOX_VERSION_STRING=@VBOX_VERSION_STRING@" -E "VBOX_VERSION_STRING_RAW=@VBOX_VERSION_STRING_RAW@" ^
|
---|
273 | -E "VBOX_VERSION_MAJOR=@VBOX_VERSION_MAJOR@" -E "VBOX_VERSION_MINOR=@VBOX_VERSION_MINOR@" -E "VBOX_VERSION_BUILD=@VBOX_VERSION_BUILD@" -E "VBOX_SVN_REV=@VBOX_SVN_REV@" ^
|
---|
274 | -E "VBOX_WINDOWS_ADDITIONS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-vista.ico" ^
|
---|
275 | -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-nsis.ico" ^
|
---|
276 | -E "VBOX_WITH_GUEST_INSTALL_HELPER=1" -E "VBOX_WITH_GUEST_INSTALLER_UNICODE=1" -E "VBOX_WITH_LICENSE_INSTALL_RTF=1" ^
|
---|
277 | -E "VBOX_WITH_WDDM=1" -E "VBOX_WITH_MESA3D=1" -E "VBOX_BRAND_WIN_ADD_INST_DLGBMP=%_MY_OPT_SRC_DIR%\welcome.bmp" ^
|
---|
278 | -E "VBOX_BRAND_LICENSE_RTF=%_MY_OPT_SRC_DIR%\License-gpl-3.0.rtf" -E "KBUILD_TYPE=%_MY_OPT_BUILD_TYPE%" -E "KBUILD_TARGET_ARCH=x86" ^
|
---|
279 | -- %KBUILD_DEVTOOLS%/win.x86/nsis/v3.04-log/makensis.exe /NOCD /V2 ^
|
---|
280 | "/DVBOX_SIGN_ADDITIONS=1" ^
|
---|
281 | "/DEXTERNAL_UNINSTALLER=1" ^
|
---|
282 | "%_MY_OPT_SRC_DIR%\VBoxGuestAdditions.nsi"
|
---|
283 |
|
---|
284 | rem
|
---|
285 | rem Making .iso
|
---|
286 | rem
|
---|
287 | echo **************************************************************************
|
---|
288 | echo * Making VBoxGuestAdditions.iso
|
---|
289 | echo **************************************************************************
|
---|
290 |
|
---|
291 | del %_MY_OPT_OUTDIR%/VBoxGuestAdditions.iso
|
---|
292 |
|
---|
293 | rem TBD: that has to be converted to invoke auto-generated .cmd
|
---|
294 |
|
---|
295 | %_MY_SCRIPT_DIR%/../bin/bldRTIsoMaker.exe ^
|
---|
296 | --output %_MY_OPT_OUTDIR%/VBoxGuestAdditions.iso ^
|
---|
297 | --iso-level 3 ^
|
---|
298 | --rock-ridge ^
|
---|
299 | --joliet ^
|
---|
300 | --rational-attribs ^
|
---|
301 | --random-order-verification 2048 ^
|
---|
302 | /cert/vbox-sha1.cer=%_MY_SCRIPT_DIR%/../bin/additions/vbox-sha1.cer ^
|
---|
303 | /cert/vbox-sha256.cer=%_MY_SCRIPT_DIR%/../bin/additions/vbox-sha256.cer ^
|
---|
304 | /windows11-bypass.reg=%_MY_SCRIPT_DIR%/../bin/additions/windows11-bypass.reg ^
|
---|
305 | /VBoxWindowsAdditions-x86.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxWindowsAdditions-x86.exe ^
|
---|
306 | /VBoxWindowsAdditions.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxWindowsAdditions.exe ^
|
---|
307 | /AUTORUN.INF=%_MY_OPT_SRC_DIR%/AUTORUN.INF ^
|
---|
308 | /cert/VBoxCertUtil.exe=%_MY_SCRIPT_DIR%/../bin/additions/VBoxCertUtil.exe ^
|
---|
309 | /NT3x/Readme.txt=%_MY_OPT_SRC_DIR%/NT3xReadme.txt ^
|
---|
310 | /NT3x/VBoxGuest.sys=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.sys ^
|
---|
311 | /NT3x/VBoxGuest.cat=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.cat ^
|
---|
312 | /NT3x/VBoxGuest.inf=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.inf ^
|
---|
313 | /NT3x/VBoxMouseNT.sys=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxMouseNT.sys ^
|
---|
314 | /NT3x/VBoxMouse.inf=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxMouse.inf ^
|
---|
315 | /NT3x/VBoxMouse.cat=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxMouse.cat ^
|
---|
316 | /NT3x/VBoxMouse.sys=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxMouse.sys ^
|
---|
317 | /NT3x/VBoxControl.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxControl.exe ^
|
---|
318 | /NT3x/VBoxService.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxService.exe ^
|
---|
319 | /VBoxWindowsAdditions-amd64.exe=%_MY_OPT_UNTAR_DIR%/win.amd64/release/bin/additions/VBoxWindowsAdditions-amd64.exe ^
|
---|
320 | /VBoxSolarisAdditions.pkg=%_MY_OPT_UNTAR_DIR%/solaris.x86/release/bin/additions/VBoxSolarisAdditions.pkg ^
|
---|
321 | /OS2/VBoxGuest.sys=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxGuest.sys ^
|
---|
322 | /OS2/VBoxSF.ifs=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxSF.ifs ^
|
---|
323 | /OS2/VBoxService.exe=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxService.exe ^
|
---|
324 | /OS2/VBoxControl.exe=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxControl.exe ^
|
---|
325 | /OS2/VBoxReplaceDll.exe=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/VBoxReplaceDll.exe ^
|
---|
326 | /OS2/libc06.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc06.dll ^
|
---|
327 | /OS2/libc061.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc061.dll ^
|
---|
328 | /OS2/libc062.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc062.dll ^
|
---|
329 | /OS2/libc063.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc063.dll ^
|
---|
330 | /OS2/libc064.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc064.dll ^
|
---|
331 | /OS2/libc065.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc065.dll ^
|
---|
332 | /OS2/libc066.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/libc066.dll ^
|
---|
333 | /OS2/readme.txt=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/readme.txt ^
|
---|
334 | /OS2/gengradd.dll=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/gengradd.dll ^
|
---|
335 | /OS2/vboxmouse.sys=%_MY_OPT_UNTAR_DIR%/os2.x86/release/bin/additions/vboxmouse.sys ^
|
---|
336 | /VBoxLinuxAdditions.run=%_MY_OPT_UNTAR_DIR%/linux.x86/release/bin/additions/VBoxLinuxAdditions.run ^
|
---|
337 | /runasroot.sh=%_MY_OPT_UNTAR_DIR%/linux.x86/release/bin/additions/runasroot.sh ^
|
---|
338 | /autorun.sh=%_MY_OPT_UNTAR_DIR%/linux.x86/release/bin/additions/autorun.sh ^
|
---|
339 | /VBoxDarwinAdditions.pkg=%_MY_OPT_UNTAR_DIR%/darwin.amd64/release/dist/additions/VBoxGuestAdditions.pkg ^
|
---|
340 | /VBoxDarwinAdditionsUninstall.tool=%_MY_OPT_UNTAR_DIR%/darwin.amd64/release/dist/additions/VBoxDarwinAdditionsUninstall.tool ^
|
---|
341 | --chmod a+x:/VBoxLinuxAdditions.run --chmod a+x:/runasroot.sh --chmod a+x:/autorun.sh --chmod a+x:/VBoxDarwinAdditionsUninstall.tool ^
|
---|
342 | --volume-id="VBOXADDITIONS_@VBOX_VERSION_STRING@_@VBOX_SVN_REV@" ^
|
---|
343 | --name-setup=joliet ^
|
---|
344 | --volume-id="VBox_GAs_@VBOX_VERSION_STRING@"
|
---|
345 |
|
---|
346 | if not exist %_MY_OPT_OUTDIR%/VBoxGuestAdditions.iso goto end_failed
|
---|
347 | call set _MY_OUT_FILES=%%VBoxGuestAdditions.iso
|
---|
348 |
|
---|
349 | rem
|
---|
350 | rem That's that.
|
---|
351 | rem
|
---|
352 | echo **************************************************************************
|
---|
353 | echo * The third and final step is done.
|
---|
354 | echo *
|
---|
355 | echo * Successfully created:
|
---|
356 | for %%i in (%_MY_OUT_FILES%) do echo * "%_MY_OPT_OUTDIR%\%%i"
|
---|
357 | goto end
|
---|
358 |
|
---|
359 |
|
---|
360 | :end_failed
|
---|
361 | @cd /d "%_MY_SAVED_CD%"
|
---|
362 | @endlocal
|
---|
363 | @endlocal
|
---|
364 | @echo * Failed!
|
---|
365 | @exit /b 1
|
---|
366 |
|
---|
367 | :end
|
---|
368 | @cd /d "%_MY_SAVED_CD%"
|
---|
369 | @endlocal
|
---|
370 | @endlocal
|
---|