Changeset 82468 in vbox for trunk/src/VBox
- Timestamp:
- Dec 6, 2019 4:32:09 PM (5 years ago)
- Location:
- trunk/src/VBox/Installer/win/Scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/Scripts/Combined-3-RepackAdditions.cmd
r82398 r82468 37 37 set _MY_OPT_BUILD_TYPE=@KBUILD_TYPE@ 38 38 set _MY_OPT_OUTDIR=%_MY_OPT_UNTAR_DIR%\output 39 set _MY_OPT_SRC_DIR=%_MY_ OPT_UNTAR_DIR%\..\src39 set _MY_OPT_SRC_DIR=%_MY_SCRIPT_DIR%\resources\ 40 40 41 41 :argument_loop … … 191 191 echo ************************************************************************** 192 192 cd /d "%_MY_REPACK_DIR_AMD64%" || goto end_failed 193 call "%_MY_REPACK_DIR_AMD64%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_AMD64%" -i "%_MY_OPT_SIGNED_AMD64%" -n || goto end_failed193 call "%_MY_REPACK_DIR_AMD64%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_AMD64%" -i "%_MY_OPT_SIGNED_AMD64%" -n -v || goto end_failed 194 194 echo . 195 195 … … 198 198 echo ************************************************************************** 199 199 cd /d "%_MY_REPACK_DIR_X86%" || goto end_failed 200 call "%_MY_REPACK_DIR_X86%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_X86%" -i "%_MY_OPT_SIGNED_X86%" -n || goto end_failed200 call "%_MY_REPACK_DIR_X86%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_X86%" -i "%_MY_OPT_SIGNED_X86%" -n -v || goto end_failed 201 201 echo . 202 202 … … 208 208 echo * Building amd64 installer 209 209 echo ************************************************************************** 210 211 del %_MY_OPT_UNTAR_DIR%\win.amd64\release\bin\additions\VBoxWindowsAdditions-amd64.exe 212 cp %_MY_REPACK_DIR_AMD64%\..\obj\uninst.exe %_MY_REPACK_DIR_AMD64% 210 213 211 214 rem TBD: that has to be converted to invoke auto-generated .cmd … … 213 216 %KBUILD_BIN_PATH%\kmk_redirect.exe -C %_MY_OPT_SRC_DIR%/VBox/Additions/WINNT/Installer ^ 214 217 -E "PATH_OUT=%_MY_REPACK_DIR_AMD64%\.." ^ 215 -E "PATH_TARGET=%_MY_REPACK_DIR_AMD64% \..\obj" ^216 -E "PATH_TARGET_X86=%_MY_REPACK_DIR_ AMD64%\..\obj" ^218 -E "PATH_TARGET=%_MY_REPACK_DIR_AMD64%" ^ 219 -E "PATH_TARGET_X86=%_MY_REPACK_DIR_X86%\resources" ^ 217 220 -E "VBOX_PATH_ADDITIONS_WIN_X86=%_MY_REPACK_DIR_AMD64%\..\bin\additions" ^ 218 221 -E "VBOX_PATH_DIFX=%KBUILD_DEVTOOLS%\win.x86\DIFx\v2.1-r3" ^ … … 220 223 -E "VBOX_C_YEAR=@VBOX_C_YEAR@" -E "VBOX_VERSION_STRING=@VBOX_VERSION_STRING@" -E "VBOX_VERSION_STRING_RAW=@VBOX_VERSION_STRING_RAW@" ^ 221 224 -E "VBOX_VERSION_MAJOR=@VBOX_VERSION_MAJOR@" -E "VBOX_VERSION_MINOR=@VBOX_VERSION_MINOR@" -E "VBOX_VERSION_BUILD=0" -E "VBOX_SVN_REV=@VBOX_SVN_REV@" ^ 222 -E "VBOX_WINDOWS_ADDITIONS_ICON_FILE=%_MY_OPT_SRC_DIR%\V Box\Artwork\win\NonOSE\VirtualBoxGA-vista.ico" ^223 -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\V Box\Artwork\win\NonOSE\VirtualBoxGA-nsis.ico" ^225 -E "VBOX_WINDOWS_ADDITIONS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-vista.ico" ^ 226 -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-nsis.ico" ^ 224 227 -E "VBOX_WITH_GUEST_INSTALL_HELPER=1" -E "VBOX_WITH_GUEST_INSTALLER_UNICODE=1" -E "VBOX_WITH_LICENSE_INSTALL_RTF=1" ^ 225 -E "VBOX_WITH_WDDM=1" -E "VBOX_WITH_MESA3D=1" -E "VBOX_BRAND_WIN_ADD_INST_DLGBMP=%_MY_OPT_SRC_DIR%\ VBox\Additions\WINNT\Installer\welcome.bmp" ^226 -E "VBOX_BRAND_LICENSE_RTF=%_MY_OPT_SRC_DIR%\ ..\doc\License-gpl-2.0.rtf" -E "BUILD_TYPE=release" -E "BUILD_TARGET_ARCH=amd64" ^228 -E "VBOX_WITH_WDDM=1" -E "VBOX_WITH_MESA3D=1" -E "VBOX_BRAND_WIN_ADD_INST_DLGBMP=%_MY_OPT_SRC_DIR%\welcome.bmp" ^ 229 -E "VBOX_BRAND_LICENSE_RTF=%_MY_OPT_SRC_DIR%\License-gpl-2.0.rtf" -E "BUILD_TYPE=release" -E "BUILD_TARGET_ARCH=amd64" ^ 227 230 -- %KBUILD_DEVTOOLS%/win.x86/nsis/v3.04-log/makensis.exe /NOCD /V2 ^ 228 231 "/DVBOX_SIGN_ADDITIONS=1" ^ 229 232 "/DEXTERNAL_UNINSTALLER=1" ^ 230 "%_MY_OPT_SRC_DIR%\VBox \Additions\WINNT\Installer\VBoxGuestAdditions.nsi"233 "%_MY_OPT_SRC_DIR%\VBoxGuestAdditions.nsi" 231 234 232 235 rem … … 236 239 echo * Building x86 installer 237 240 echo ************************************************************************** 241 242 del %_MY_OPT_UNTAR_DIR%\win.x86\release\bin\additions\VBoxWindowsAdditions-x86.exe 243 cp %_MY_REPACK_DIR_X86%\..\obj\uninst.exe %_MY_REPACK_DIR_X86%\ 238 244 239 245 rem TBD: that has to be converted to invoke auto-generated .cmd … … 241 247 %KBUILD_BIN_PATH%\kmk_redirect.exe -C %_MY_OPT_SRC_DIR%/VBox/Additions/WINNT/Installer ^ 242 248 -E "PATH_OUT=%_MY_REPACK_DIR_X86%\.." ^ 243 -E "PATH_TARGET=%_MY_REPACK_DIR_X86% \..\obj" ^244 -E "PATH_TARGET_X86=%_MY_REPACK_DIR_X86%\ ..\obj" ^249 -E "PATH_TARGET=%_MY_REPACK_DIR_X86%" ^ 250 -E "PATH_TARGET_X86=%_MY_REPACK_DIR_X86%\resources" ^ 245 251 -E "VBOX_PATH_ADDITIONS_WIN_X86=%_MY_REPACK_DIR_X86%\..\bin\additions" ^ 246 252 -E "VBOX_PATH_DIFX=%KBUILD_DEVTOOLS%\win.x86\DIFx\v2.1-r3" ^ … … 248 254 -E "VBOX_C_YEAR=@VBOX_C_YEAR@" -E "VBOX_VERSION_STRING=@VBOX_VERSION_STRING@" -E "VBOX_VERSION_STRING_RAW=@VBOX_VERSION_STRING_RAW@" ^ 249 255 -E "VBOX_VERSION_MAJOR=@VBOX_VERSION_MAJOR@" -E "VBOX_VERSION_MINOR=@VBOX_VERSION_MINOR@" -E "VBOX_VERSION_BUILD=0" -E "VBOX_SVN_REV=@VBOX_SVN_REV@" ^ 250 -E "VBOX_WINDOWS_ADDITIONS_ICON_FILE=%_MY_OPT_SRC_DIR%\V Box\Artwork\win\NonOSE\VirtualBoxGA-vista.ico" ^251 -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\V Box\Artwork\win\NonOSE\VirtualBoxGA-nsis.ico" ^256 -E "VBOX_WINDOWS_ADDITIONS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-vista.ico" ^ 257 -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\VirtualBoxGA-nsis.ico" ^ 252 258 -E "VBOX_WITH_GUEST_INSTALL_HELPER=1" -E "VBOX_WITH_GUEST_INSTALLER_UNICODE=1" -E "VBOX_WITH_LICENSE_INSTALL_RTF=1" ^ 253 -E "VBOX_WITH_WDDM=1" -E "VBOX_WITH_MESA3D=1" -E "VBOX_BRAND_WIN_ADD_INST_DLGBMP=%_MY_OPT_SRC_DIR%\ VBox\Additions\WINNT\Installer\welcome.bmp" ^254 -E "VBOX_BRAND_LICENSE_RTF=%_MY_OPT_SRC_DIR%\ ..\doc\License-gpl-2.0.rtf" -E "BUILD_TYPE=release" -E "BUILD_TARGET_ARCH=x86" ^259 -E "VBOX_WITH_WDDM=1" -E "VBOX_WITH_MESA3D=1" -E "VBOX_BRAND_WIN_ADD_INST_DLGBMP=%_MY_OPT_SRC_DIR%\welcome.bmp" ^ 260 -E "VBOX_BRAND_LICENSE_RTF=%_MY_OPT_SRC_DIR%\License-gpl-2.0.rtf" -E "BUILD_TYPE=release" -E "BUILD_TARGET_ARCH=x86" ^ 255 261 -- %KBUILD_DEVTOOLS%/win.x86/nsis/v3.04-log/makensis.exe /NOCD /V2 ^ 256 262 "/DVBOX_SIGN_ADDITIONS=1" ^ 257 263 "/DEXTERNAL_UNINSTALLER=1" ^ 258 "%_MY_OPT_SRC_DIR%\VBox \Additions\WINNT\Installer\VBoxGuestAdditions.nsi"264 "%_MY_OPT_SRC_DIR%\VBoxGuestAdditions.nsi" 259 265 260 266 rem … … 280 286 /VBoxWindowsAdditions-x86.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxWindowsAdditions-x86.exe ^ 281 287 /VBoxWindowsAdditions.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxWindowsAdditions.exe ^ 282 /AUTORUN.INF=%_MY_OPT_SRC_DIR%/ VBox/Additions/WINNT/Installer/ISO/AUTORUN.INF ^288 /AUTORUN.INF=%_MY_OPT_SRC_DIR%/AUTORUN.INF ^ 283 289 /cert/VBoxCertUtil.exe=%_MY_SCRIPT_DIR%../bin/additions/VBoxCertUtil.exe ^ 284 /NT3x/Readme.txt=%_MY_OPT_SRC_DIR%/ VBox/Additions/WINNT/Installer/ISO/NT3xReadme.txt ^290 /NT3x/Readme.txt=%_MY_OPT_SRC_DIR%/NT3xReadme.txt ^ 285 291 /NT3x/VBoxGuest.sys=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.sys ^ 286 292 /NT3x/VBoxGuest.cat=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.cat ^ -
trunk/src/VBox/Installer/win/Scripts/UnpackBlessedDrivers.cmd
r76553 r82468 36 36 set _MY_OPT_INPUT= 37 37 set _MY_OPT_SIGN_CAT=1 38 set _MY_OPT_SIGN_VERIFY=1 38 39 39 40 :argument_loop … … 54 55 if ".%1" == ".-n" goto opt_n 55 56 if ".%1" == ".--no-sign-cat" goto opt_n 57 if ".%1" == ".-v" goto opt_v 58 if ".%1" == ".--no-sign-verify" goto opt_v 59 56 60 echo syntax error: Unknown option: %1 57 61 echo Try --help to list valid options. … … 73 77 echo will be signed again and the Microsoft signature merged with ours. 74 78 echo . 75 echo Usage: UnpackBlessedDrivers.cmd [-b bindir] [-n/--no-sign-cat] -i input.zip79 echo Usage: UnpackBlessedDrivers.cmd [-b bindir] [-n/--no-sign-cat] [-v/--no-sign-verify] -i input.zip 76 80 echo . 77 81 echo Warning! This script should normally be invoked from the repack directory … … 85 89 :opt_n 86 90 set _MY_OPT_SIGN_CAT=0 91 shift 92 goto argument_loop 93 94 :opt_v 95 set _MY_OPT_SIGN_VERIFY=0 87 96 shift 88 97 goto argument_loop … … 116 125 :unzip_okay 117 126 127 if ".%_MY_OPT_SIGN_VERIFY%" == ".0" goto no_sign_verify 118 128 rem 119 129 rem Verify it against the PreW10 catalog files we saved. … … 130 140 "%_MY_SIGNTOOL%" verify /kp /c "%_MY_OPT_BINDIR%\%%d-PreW10.cat" "%_MY_OPT_BINDIR%\%%d.sys" || goto end_failed 131 141 ) 132 142 :no_sign_verify 133 143 134 144 rem
Note:
See TracChangeset
for help on using the changeset viewer.