VirtualBox

Changeset 82468 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 6, 2019 4:32:09 PM (5 years ago)
Author:
vboxsync
Message:

RepackGA scripts: updating repacking scripts. bugref:9587

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  
    3737set _MY_OPT_BUILD_TYPE=@KBUILD_TYPE@
    3838set _MY_OPT_OUTDIR=%_MY_OPT_UNTAR_DIR%\output
    39 set _MY_OPT_SRC_DIR=%_MY_OPT_UNTAR_DIR%\..\src
     39set _MY_OPT_SRC_DIR=%_MY_SCRIPT_DIR%\resources\
    4040
    4141:argument_loop
     
    191191echo **************************************************************************
    192192cd /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_failed
     193call "%_MY_REPACK_DIR_AMD64%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_AMD64%" -i "%_MY_OPT_SIGNED_AMD64%" -n -v || goto end_failed
    194194echo .
    195195
     
    198198echo **************************************************************************
    199199cd /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_failed
     200call "%_MY_REPACK_DIR_X86%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_X86%" -i "%_MY_OPT_SIGNED_X86%" -n -v || goto end_failed
    201201echo .
    202202
     
    208208echo * Building amd64 installer
    209209echo **************************************************************************
     210
     211del %_MY_OPT_UNTAR_DIR%\win.amd64\release\bin\additions\VBoxWindowsAdditions-amd64.exe
     212cp %_MY_REPACK_DIR_AMD64%\..\obj\uninst.exe %_MY_REPACK_DIR_AMD64%
    210213
    211214rem TBD: that has to be converted to invoke auto-generated .cmd
     
    213216%KBUILD_BIN_PATH%\kmk_redirect.exe -C %_MY_OPT_SRC_DIR%/VBox/Additions/WINNT/Installer ^
    214217        -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" ^
    217220        -E "VBOX_PATH_ADDITIONS_WIN_X86=%_MY_REPACK_DIR_AMD64%\..\bin\additions" ^
    218221        -E "VBOX_PATH_DIFX=%KBUILD_DEVTOOLS%\win.x86\DIFx\v2.1-r3" ^
     
    220223        -E "VBOX_C_YEAR=@VBOX_C_YEAR@" -E "VBOX_VERSION_STRING=@VBOX_VERSION_STRING@" -E "VBOX_VERSION_STRING_RAW=@VBOX_VERSION_STRING_RAW@" ^
    221224        -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%\VBox\Artwork\win\NonOSE\VirtualBoxGA-vista.ico" ^
    223         -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\VBox\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" ^
    224227        -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" ^
    227230        --  %KBUILD_DEVTOOLS%/win.x86/nsis/v3.04-log/makensis.exe /NOCD /V2 ^
    228231                "/DVBOX_SIGN_ADDITIONS=1" ^
    229232                "/DEXTERNAL_UNINSTALLER=1" ^
    230                 "%_MY_OPT_SRC_DIR%\VBox\Additions\WINNT\Installer\VBoxGuestAdditions.nsi"
     233                "%_MY_OPT_SRC_DIR%\VBoxGuestAdditions.nsi"
    231234
    232235rem
     
    236239echo * Building x86 installer
    237240echo **************************************************************************
     241
     242del %_MY_OPT_UNTAR_DIR%\win.x86\release\bin\additions\VBoxWindowsAdditions-x86.exe
     243cp %_MY_REPACK_DIR_X86%\..\obj\uninst.exe %_MY_REPACK_DIR_X86%\
    238244
    239245rem TBD: that has to be converted to invoke auto-generated .cmd
     
    241247%KBUILD_BIN_PATH%\kmk_redirect.exe -C %_MY_OPT_SRC_DIR%/VBox/Additions/WINNT/Installer ^
    242248        -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" ^
    245251        -E "VBOX_PATH_ADDITIONS_WIN_X86=%_MY_REPACK_DIR_X86%\..\bin\additions" ^
    246252        -E "VBOX_PATH_DIFX=%KBUILD_DEVTOOLS%\win.x86\DIFx\v2.1-r3" ^
     
    248254        -E "VBOX_C_YEAR=@VBOX_C_YEAR@" -E "VBOX_VERSION_STRING=@VBOX_VERSION_STRING@" -E "VBOX_VERSION_STRING_RAW=@VBOX_VERSION_STRING_RAW@" ^
    249255        -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%\VBox\Artwork\win\NonOSE\VirtualBoxGA-vista.ico" ^
    251         -E "VBOX_NSIS_ICON_FILE=%_MY_OPT_SRC_DIR%\VBox\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" ^
    252258        -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" ^
    255261        --  %KBUILD_DEVTOOLS%/win.x86/nsis/v3.04-log/makensis.exe /NOCD /V2 ^
    256262                "/DVBOX_SIGN_ADDITIONS=1" ^
    257263                "/DEXTERNAL_UNINSTALLER=1" ^
    258                 "%_MY_OPT_SRC_DIR%\VBox\Additions\WINNT\Installer\VBoxGuestAdditions.nsi"
     264                "%_MY_OPT_SRC_DIR%\VBoxGuestAdditions.nsi"
    259265
    260266rem
     
    280286        /VBoxWindowsAdditions-x86.exe=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxWindowsAdditions-x86.exe ^
    281287        /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 ^
    283289        /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 ^
    285291        /NT3x/VBoxGuest.sys=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.sys ^
    286292        /NT3x/VBoxGuest.cat=%_MY_OPT_UNTAR_DIR%/win.x86/release/bin/additions/VBoxGuest.cat ^
  • trunk/src/VBox/Installer/win/Scripts/UnpackBlessedDrivers.cmd

    r76553 r82468  
    3636set _MY_OPT_INPUT=
    3737set _MY_OPT_SIGN_CAT=1
     38set _MY_OPT_SIGN_VERIFY=1
    3839
    3940:argument_loop
     
    5455if ".%1" == ".-n"           goto opt_n
    5556if ".%1" == ".--no-sign-cat" goto opt_n
     57if ".%1" == ".-v"           goto opt_v
     58if ".%1" == ".--no-sign-verify" goto opt_v
     59
    5660echo syntax error: Unknown option: %1
    5761echo               Try --help to list valid options.
     
    7377echo will be signed again and the Microsoft signature merged with ours.
    7478echo .
    75 echo Usage: UnpackBlessedDrivers.cmd [-b bindir] [-n/--no-sign-cat] -i input.zip
     79echo Usage: UnpackBlessedDrivers.cmd [-b bindir] [-n/--no-sign-cat] [-v/--no-sign-verify] -i input.zip
    7680echo .
    7781echo Warning! This script should normally be invoked from the repack directory
     
    8589:opt_n
    8690set _MY_OPT_SIGN_CAT=0
     91shift
     92goto argument_loop
     93
     94:opt_v
     95set _MY_OPT_SIGN_VERIFY=0
    8796shift
    8897goto argument_loop
     
    116125:unzip_okay
    117126
     127if ".%_MY_OPT_SIGN_VERIFY%" == ".0" goto no_sign_verify
    118128rem
    119129rem Verify it against the PreW10 catalog files we saved.
     
    130140    "%_MY_SIGNTOOL%" verify /kp /c "%_MY_OPT_BINDIR%\%%d-PreW10.cat" "%_MY_OPT_BINDIR%\%%d.sys" || goto end_failed
    131141)
    132 
     142:no_sign_verify
    133143
    134144rem
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette