Changeset 80769 in vbox for trunk/src/VBox/Installer/win/Scripts
- Timestamp:
- Sep 13, 2019 10:04:41 AM (5 years ago)
- Location:
- trunk/src/VBox/Installer/win/Scripts
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/Scripts/Combined-1-Prepare.cmd
r79439 r80769 125 125 126 126 :error_x86_bindir_not_found 127 echo syntax error: The AMD64bin directory was not found: "%_MY_BINDIR_X86%"127 echo syntax error: The X86 bin directory was not found: "%_MY_BINDIR_X86%" 128 128 goto end_failed 129 129 130 130 :error_amd64_repack_dir_not_found 131 echo syntax error: The AMD64 bindirectory was not found: "%_MY_REPACK_DIR_AMD64%"131 echo syntax error: The AMD64 repack directory was not found: "%_MY_REPACK_DIR_AMD64%" 132 132 goto end_failed 133 133 134 134 :error_x86_repack_dir_not_found 135 echo syntax error: The AMD64 bindirectory was not found: "%_MY_REPACK_DIR_X86%"135 echo syntax error: The X86 repack directory was not found: "%_MY_REPACK_DIR_X86%" 136 136 goto end_failed 137 137 -
trunk/src/VBox/Installer/win/Scripts/Combined-3-Repack.cmd
r77351 r80769 142 142 143 143 :error_x86_bindir_not_found 144 echo syntax error: The AMD64bin directory was not found: "%_MY_BINDIR_X86%"144 echo syntax error: The X86 bin directory was not found: "%_MY_BINDIR_X86%" 145 145 goto end_failed 146 146 147 147 :error_amd64_repack_dir_not_found 148 echo syntax error: The AMD64 bindirectory was not found: "%_MY_REPACK_DIR_AMD64%"148 echo syntax error: The AMD64 repack directory was not found: "%_MY_REPACK_DIR_AMD64%" 149 149 goto end_failed 150 150 151 151 :error_x86_repack_dir_not_found 152 echo syntax error: The AMD64 bindirectory was not found: "%_MY_REPACK_DIR_X86%"152 echo syntax error: The X86 repack directory was not found: "%_MY_REPACK_DIR_X86%" 153 153 goto end_failed 154 154 -
trunk/src/VBox/Installer/win/Scripts/Single-1-Prepare.cmd
r80761 r80769 2 2 rem $Id$ 3 3 rem rem @file 4 rem Windows NT batch script for preparing both amd64 and x86for signing submission.4 rem Windows NT batch script for preparing single build (either amd64 and x86) for signing submission. 5 5 rem 6 6 … … 39 39 set _MY_OPT_BUILD_TYPE=@KBUILD_TYPE@ 40 40 set _MY_OPT_OUTDIR=%_MY_OPT_UNTAR_DIR%\output 41 set _MY_OPT_ARCH=@KBUILD_TARGET_ARCH@ 41 42 42 43 :argument_loop … … 51 52 if ".%1" == ".--help" goto opt_h 52 53 54 if ".%1" == ".-a" goto opt_a 55 if ".%1" == ".--arch" goto opt_a 53 56 if ".%1" == ".-e" goto opt_e 54 57 if ".%1" == ".--extpack" goto opt_e … … 70 73 goto argument_loop 71 74 75 :opt_a 76 if ".%~2" == "." goto syntax_error_missing_value 77 if not "%2" == "x86" if not "%2" == "amd64" goto syntax_error_unknown_arch 78 set _MY_OPT_ARCH=%~2 79 goto argument_loop_next_with_value 80 72 81 :opt_e 73 82 if ".%~2" == "." goto syntax_error_missing_value … … 76 85 77 86 :opt_h 78 echo Toplevel combined package: Prepare bothx86 and amd64 for submission.79 echo . 80 echo Usage: Combined-1-Prepare.cmd [-o output-dir] [-e/--extpack puel.vbox-extpack]87 echo Toplevel single package: Prepare either x86 and amd64 for submission. 88 echo . 89 echo Usage: Single-1-Prepare.cmd [-o output-dir] [-e/--extpack puel.vbox-extpack] 81 90 echo [-s/--extpack-enterprise puel-enterprise.vbox-extpack] 82 91 echo [-u/--vboxall-dir unpacked-vboxall-dir] [-t build-type] 83 echo . 92 echo [-a x86/amd64] 93 echo . 94 echo Default -a/--arch value: %_MY_OPT_ARCH% 84 95 echo Default -e/--extpack value: %_MY_OPT_EXTPACK% 85 96 echo Default -s/--extpack-enterprise value: %_MY_OPT_EXTPACK_ENTERPRISE% … … 115 126 goto end_failed 116 127 128 :syntax_error_unknown_arch 129 echo syntax error: Unknown architecture: %2 130 goto end_failed 131 117 132 118 133 :error_vboxall_untar_dir_not_found … … 120 135 goto end_failed 121 136 122 :error_amd64_bindir_not_found 123 echo syntax error: The AMD64 bin directory was not found: "%_MY_BINDIR_AMD64%" 124 goto end_failed 125 126 :error_x86_bindir_not_found 127 echo syntax error: The AMD64 bin directory was not found: "%_MY_BINDIR_X86%" 128 goto end_failed 129 130 :error_amd64_repack_dir_not_found 131 echo syntax error: The AMD64 bin directory was not found: "%_MY_REPACK_DIR_AMD64%" 132 goto end_failed 133 134 :error_x86_repack_dir_not_found 135 echo syntax error: The AMD64 bin directory was not found: "%_MY_REPACK_DIR_X86%" 137 :error_bindir_not_found 138 echo syntax error: The bin directory was not found: "%_MY_BINDIR%" 139 goto end_failed 140 141 :error_repack_dir_not_found 142 echo syntax error: The repack directory was not found: "%_MY_REPACK_DIR%" 136 143 goto end_failed 137 144 … … 153 160 if not exist "%_MY_OPT_UNTAR_DIR%" goto error_vboxall_untar_dir_not_found 154 161 155 set _MY_BINDIR_AMD64=%_MY_OPT_UNTAR_DIR%\win.amd64\%_MY_OPT_BUILD_TYPE%\bin 156 set _MY_BINDIR_X86=%_MY_OPT_UNTAR_DIR%\win.x86\%_MY_OPT_BUILD_TYPE%\bin 157 if not exist "%_MY_BINDIR_AMD64%" goto error_amd64_bindir_not_found 158 if not exist "%_MY_BINDIR_X86%" goto error_x86_bindir_not_found 159 160 set _MY_REPACK_DIR_AMD64=%_MY_OPT_UNTAR_DIR%\win.amd64\%_MY_OPT_BUILD_TYPE%\repack 161 set _MY_REPACK_DIR_X86=%_MY_OPT_UNTAR_DIR%\win.x86\%_MY_OPT_BUILD_TYPE%\repack 162 if not exist "%_MY_REPACK_DIR_AMD64%" goto error_amd64_repack_dir_not_found 163 if not exist "%_MY_REPACK_DIR_X86%" goto error_x86_repack_dir_not_found 162 set _MY_BINDIR=%_MY_OPT_UNTAR_DIR%\bin 163 if not exist "%_MY_BINDIR%" goto error_bindir_not_found 164 165 set _MY_REPACK_DIR=%_MY_OPT_UNTAR_DIR%\repack 166 if not exist "%_MY_REPACK_DIR%" goto error_repack_dir_not_found 164 167 165 168 if not exist "%_MY_OPT_EXTPACK%" goto error_extpack_not_found … … 175 178 rem 176 179 echo on 177 copy /y "%_MY_OPT_EXTPACK%" "%_MY_BINDIR_AMD64%\Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack" || goto end_failed 178 copy /y "%_MY_OPT_EXTPACK%" "%_MY_BINDIR_X86%\Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack" || goto end_failed 180 copy /y "%_MY_OPT_EXTPACK%" "%_MY_BINDIR%\Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack" || goto end_failed 179 181 @echo off 180 182 … … 183 185 rem 184 186 echo ************************************************************************** 185 echo Packing AMD64drivers187 echo Packing drivers 186 188 echo ************************************************************************** 187 cd /d "%_MY_REPACK_DIR_AMD64%" || goto end_failed 188 call "%_MY_REPACK_DIR_AMD64%\PackDriversForSubmission.cmd" -b "%_MY_BINDIR_AMD64%" -a amd64 -e "%_MY_OPT_EXTPACK%" ^ 189 -o "%_MY_OPT_OUTDIR%\VBoxDrivers-%_MY_VER_REV%-amd64.cab" || goto end_failed 190 echo . 191 echo ************************************************************************** 192 echo Packing X86 drivers 193 echo ************************************************************************** 194 cd /d "%_MY_REPACK_DIR_X86%" || goto end_failed 195 call "%_MY_REPACK_DIR_X86%\PackDriversForSubmission.cmd" -b "%_MY_BINDIR_X86%" -a x86 -e "%_MY_OPT_EXTPACK%" ^ 196 -o "%_MY_OPT_OUTDIR%\VBoxDrivers-%_MY_VER_REV%-x86.cab" || goto end_failed 189 cd /d "%_MY_REPACK_DIR%" || goto end_failed 190 call "%_MY_REPACK_DIR%\PackDriversForSubmission.cmd" -b "%_MY_BINDIR%" -a "%_MY_OPT_ARCH%" -e "%_MY_OPT_EXTPACK%" ^ 191 -o "%_MY_OPT_OUTDIR%\VBoxDrivers-%_MY_VER_REV%-%_MY_OPT_ARCH%.cab" || goto end_failed 197 192 echo . 198 193 cd /d "%_MY_SAVED_CD%" … … 201 196 rem Generate script for taking the next step. 202 197 rem 203 set _MY_NEXT_SCRIPT=%_MY_OPT_OUTDIR%\ Combined-3-Repack.cmd198 set _MY_NEXT_SCRIPT=%_MY_OPT_OUTDIR%\Single-3-Repack.cmd 204 199 echo cd /d "%cd%" > "%_MY_NEXT_SCRIPT%" 205 echo call "%_MY_SCRIPT_DIR%\ Combined-3-Repack.cmd" --extpack "%_MY_OPT_EXTPACK%" ^200 echo call "%_MY_SCRIPT_DIR%\Single-3-Repack.cmd" --extpack "%_MY_OPT_EXTPACK%" ^ 206 201 --extpack-enterprise "%_MY_OPT_EXTPACK_ENTERPRISE%" ^ 207 202 --vboxall-untar-dir "%_MY_OPT_UNTAR_DIR%" ^ … … 216 211 echo * 217 212 echo * Created: 218 echo * %_MY_OPT_OUTDIR%\VBoxDrivers-%_MY_VER_REV%-amd64.cab 219 echo * %_MY_OPT_OUTDIR%\VBoxDrivers-%_MY_VER_REV%-x86.cab 213 echo * %_MY_OPT_OUTDIR%\VBoxDrivers-%_MY_VER_REV%-%_MY_OPT_ARCH%.cab 220 214 echo * 221 215 echo * Next steps: 222 216 echo * 1. Submit the files to Microsoft for attestation signing. 223 217 echo * 2. Download the signed result. 224 echo * 3. "%_MY_NEXT_SCRIPT%" --signed -x86 {zip} --signed-amd64{zip}218 echo * 3. "%_MY_NEXT_SCRIPT%" --signed {zip} 225 219 226 220 goto end -
trunk/src/VBox/Installer/win/Scripts/Single-3-Repack.cmd
r80761 r80769 2 2 rem $Id$ 3 3 rem rem @file 4 rem Windows NT batch script for repacking signed amd64 andx86 drivers.4 rem Windows NT batch script for repacking signed amd64 or x86 drivers. 5 5 rem 6 6 … … 39 39 set _MY_OPT_BUILD_TYPE=@KBUILD_TYPE@ 40 40 set _MY_OPT_OUTDIR=%_MY_OPT_UNTAR_DIR%\output 41 set _MY_OPT_SIGNED_AMD64= 42 set _MY_OPT_SIGNED_X86= 41 set _MY_OPT_SIGNED= 43 42 44 43 :argument_loop … … 59 58 if ".%1" == ".-s" goto opt_s 60 59 if ".%1" == ".--extpack-enterprise" goto opt_s 61 if ".%1" == ".--signed-amd64" goto opt_signed_amd64 62 if ".%1" == ".--signed-x86" goto opt_signed_x86 60 if ".%1" == ".--signed" goto opt_signed 63 61 if ".%1" == ".-t" goto opt_t 64 62 if ".%1" == ".--build-type" goto opt_t … … 85 83 echo [-s/--extpack-enterprise puel-enterprise.vbox-extpack] 86 84 echo [-u/--vboxall-dir unpacked-vboxall-dir] [-t build-type] 87 echo [--signed-amd64 signed-amd64.zip] 88 echo [--signed-x86 signed-x86.zip] 85 echo [--signed signed.zip] 89 86 echo 90 87 echo . … … 107 104 goto argument_loop_next_with_value 108 105 109 :opt_signed_amd64 110 if ".%~2" == "." goto syntax_error_missing_value 111 set _MY_OPT_SIGNED_AMD64=%~f2 112 goto argument_loop_next_with_value 113 114 :opt_signed_x86 115 if ".%~2" == "." goto syntax_error_missing_value 116 set _MY_OPT_SIGNED_X86=%~f2 106 :opt_signed 107 if ".%~2" == "." goto syntax_error_missing_value 108 set _MY_OPT_SIGNED=%~f2 117 109 goto argument_loop_next_with_value 118 110 … … 137 129 goto end_failed 138 130 139 :error_amd64_bindir_not_found 140 echo syntax error: The AMD64 bin directory was not found: "%_MY_BINDIR_AMD64%" 141 goto end_failed 142 143 :error_x86_bindir_not_found 144 echo syntax error: The AMD64 bin directory was not found: "%_MY_BINDIR_X86%" 145 goto end_failed 146 147 :error_amd64_repack_dir_not_found 148 echo syntax error: The AMD64 bin directory was not found: "%_MY_REPACK_DIR_AMD64%" 149 goto end_failed 150 151 :error_x86_repack_dir_not_found 152 echo syntax error: The AMD64 bin directory was not found: "%_MY_REPACK_DIR_X86%" 131 :error_bindir_not_found 132 echo syntax error: The bin directory was not found: "%_MY_BINDIR%" 133 goto end_failed 134 135 :error_repack_dir_not_found 136 echo syntax error: The repack directory was not found: "%_MY_REPACK_DIR%" 153 137 goto end_failed 154 138 … … 161 145 goto end_failed 162 146 163 :error_signed_amd64_not_found 164 echo syntax error: Zip with signed AMD64 drivers not found: "%_MY_OPT_SIGNED_AMD64%" 165 goto end_failed 166 167 :error_signed_x86_not_found 168 echo syntax error: Zip with signed X86 drivers not found: "%_MY_OPT_SIGNED_X86%" 147 :error_signed_not_found 148 echo syntax error: Zip with signed drivers not found: "%_MY_OPT_SIGNED%" 169 149 goto end_failed 170 150 … … 177 157 if not exist "%_MY_OPT_UNTAR_DIR%" goto error_vboxall_untar_dir_not_found 178 158 179 set _MY_BINDIR_AMD64=%_MY_OPT_UNTAR_DIR%\win.amd64\%_MY_OPT_BUILD_TYPE%\bin 180 set _MY_BINDIR_X86=%_MY_OPT_UNTAR_DIR%\win.x86\%_MY_OPT_BUILD_TYPE%\bin 181 if not exist "%_MY_BINDIR_AMD64%" goto error_amd64_bindir_not_found 182 if not exist "%_MY_BINDIR_X86%" goto error_x86_bindir_not_found 183 184 set _MY_REPACK_DIR_AMD64=%_MY_OPT_UNTAR_DIR%\win.amd64\%_MY_OPT_BUILD_TYPE%\repack 185 set _MY_REPACK_DIR_X86=%_MY_OPT_UNTAR_DIR%\win.x86\%_MY_OPT_BUILD_TYPE%\repack 186 if not exist "%_MY_REPACK_DIR_AMD64%" goto error_amd64_repack_dir_not_found 187 if not exist "%_MY_REPACK_DIR_X86%" goto error_x86_repack_dir_not_found 159 set _MY_BINDIR=%_MY_OPT_UNTAR_DIR%\bin 160 if not exist "%_MY_BINDIR%" goto error_bindir_not_found 161 162 set _MY_REPACK_DIR=%_MY_OPT_UNTAR_DIR%\repack 163 if not exist "%_MY_REPACK_DIR%" goto error_repack_dir_not_found 188 164 189 165 if not exist "%_MY_OPT_EXTPACK%" goto error_extpack_not_found 190 166 if not ".%_MY_OPT_EXTPACK_ENTERPRISE%" == "." if not exist "%_MY_OPT_EXTPACK_ENTERPRISE%" goto error_enterprise_extpack_not_found 191 167 192 if not exist "%_MY_OPT_SIGNED_AMD64%" goto error_signed_amd64_not_found 193 if not exist "%_MY_OPT_SIGNED_X86%" goto error_signed_x86_not_found 168 if not exist "%_MY_OPT_SIGNED%" goto error_signed_not_found 194 169 195 170 rem Make sure the output dir exists. … … 197 172 198 173 rem 199 rem Unpacking the two driver zips. 200 rem 201 echo ************************************************************************** 202 echo * AMD64: Unpacking signed drivers... 203 echo ************************************************************************** 204 cd /d "%_MY_REPACK_DIR_AMD64%" || goto end_failed 205 call "%_MY_REPACK_DIR_AMD64%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_AMD64%" -i "%_MY_OPT_SIGNED_AMD64%" || goto end_failed 206 echo . 207 208 echo ************************************************************************** 209 echo * X86: Unpacking signed drivers... 210 echo ************************************************************************** 211 cd /d "%_MY_REPACK_DIR_X86%" || goto end_failed 212 call "%_MY_REPACK_DIR_X86%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR_X86%" -i "%_MY_OPT_SIGNED_X86%" || goto end_failed 213 echo . 214 215 216 rem 217 rem Do the AMD64 work. 218 rem 219 echo ************************************************************************** 220 echo * AMD64: Repackaging installers 221 echo ************************************************************************** 222 echo * AMD64: Compiling WIX... 223 cd /d "%_MY_REPACK_DIR_AMD64%" || goto end_failed 174 rem Unpacking the driver zip. 175 rem 176 echo ************************************************************************** 177 echo * Unpacking signed drivers... 178 echo ************************************************************************** 179 cd /d "%_MY_REPACK_DIR%" || goto end_failed 180 call "%_MY_REPACK_DIR%\UnpackBlessedDrivers.cmd" -b "%_MY_BINDIR%" -i "%_MY_OPT_SIGNED%" || goto end_failed 181 echo . 182 183 184 rem 185 rem Do the work. 186 rem 187 echo ************************************************************************** 188 echo * Repackaging installers 189 echo ************************************************************************** 190 echo * Compiling WIX... 191 cd /d "%_MY_REPACK_DIR%" || goto end_failed 224 192 for %%i in (1-*.cmd) do (call %%i || goto end_failed) 225 193 echo . 226 194 227 echo * AMD64:Linking WIX...195 echo * Linking WIX... 228 196 for %%i in (2-*.cmd) do (call %%i || goto end_failed) 229 197 echo . 230 198 231 echo * A MD64: Applying language patches to MSI...199 echo * Applying language patches to MSI... 232 200 for %%i in (3-*.cmd) do (call %%i || goto end_failed) 233 201 echo . 234 202 235 203 236 rem237 rem Do the X86 work.238 rem239 echo **************************************************************************240 echo * X86: Repackaging installers241 echo **************************************************************************242 echo * X86: Compiling WIX...243 cd /d "%_MY_REPACK_DIR_X86%" || goto end_failed244 for %%i in (1-*.cmd) do (call %%i || goto end_failed)245 echo .246 247 echo * X86: Linking WIX...248 for %%i in (2-*.cmd) do (call %%i || goto end_failed)249 echo .250 251 echo * X86: Applying language patches to MSI...252 for %%i in (3-*.cmd) do (call %%i || goto end_failed)253 echo .254 255 echo * X86: Creating multi arch installer...256 for %%i in (4-*.cmd) do (call %%i || goto end_failed)257 echo .258 259 204 set _MY_OUT_FILES= 260 cd /d "%_MY_REPACK_DIR _AMD64%" || goto end_failed205 cd /d "%_MY_REPACK_DIR%" || goto end_failed 261 206 for %%i in (VBoxMerge*msm) do ( 262 207 copy /y "%%i" "%_MY_OPT_OUTDIR%" || goto end_failed 263 208 call set _MY_OUT_FILES=%%_MY_OUT_FILES%% %%~nxi 264 209 ) 265 cd /d "%_MY_REPACK_DIR_X86%" || goto end_failed266 for %%i in (VBoxMerge*msm) do (267 copy /y "%%i" "%_MY_OPT_OUTDIR%" || goto end_failed268 call set _MY_OUT_FILES=%%_MY_OUT_FILES%% %%~nxi269 )270 210 for %%i in (VirtualBox-*MultiArch*exe) do ( 271 211 copy /y "%%i" "%_MY_OPT_OUTDIR%" || goto end_failed … … 280 220 echo * Repacking extension packs. 281 221 echo ************************************************************************** 282 cd /d "%_MY_REPACK_DIR _X86%" || goto end_failed222 cd /d "%_MY_REPACK_DIR%" || goto end_failed 283 223 284 224 echo * Regular PUEL... … … 288 228 call set _MY_OUT_FILES=%%_MY_OUT_FILES%% %%~nxi 289 229 ) 290 call "%_MY_REPACK_DIR _X86%\RepackExtPack.cmd" --bindir-amd64 "%_MY_BINDIR_AMD64%" --bindir-x86 "%_MY_BINDIR_X86%" ^230 call "%_MY_REPACK_DIR%\RepackExtPack.cmd" --bindir-amd64 "%_MY_BINDIR%" --bindir-x86 "%_MY_BINDIR%" ^ 291 231 --input "%_MY_OPT_EXTPACK%" --output "%_MY_TMP_OUT%" || goto end_failed 292 232 … … 298 238 call set _MY_OUT_FILES=%%_MY_OUT_FILES%% %%~nxi 299 239 ) 300 call "%_MY_REPACK_DIR _X86%\RepackExtPack.cmd" --bindir-amd64 "%_MY_BINDIR_AMD64%" --bindir-x86 "%_MY_BINDIR_X86%" ^240 call "%_MY_REPACK_DIR%\RepackExtPack.cmd" --bindir-amd64 "%_MY_BINDIR%" --bindir-x86 "%_MY_BINDIR%" ^ 301 241 --input "%_MY_OPT_EXTPACK_ENTERPRISE%" --output "%_MY_TMP_OUT%" || goto end_failed 302 242 :no_enterprise_repacking
Note:
See TracChangeset
for help on using the changeset viewer.