VirtualBox

Changeset 71951 in vbox for trunk


Ignore:
Timestamp:
Apr 21, 2018 9:39:16 PM (7 years ago)
Author:
vboxsync
Message:

Installer/win: Added script for packing unpacking and .cat-file signature updating. bugref:8691

Location:
trunk/src/VBox/Installer/win
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/Makefile.kmk

    r71935 r71951  
    424424        "$(VBOX_WIN_INST_REPACK_DIR)/files-VirtualBox_$(lang)/"
    425425        $(APPEND) -tn "$$(VBOX_WIN_INST_REPACK_DIR)/2-link-$$(PACKAGE_NAME_LANG).cmd" \
    426         'if ".%KBUILD_DEVTOOLS%" == "." echo KBUILD_DEVTOOLS is not set' \
     426        'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
    427427                $(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%,\
    428428                '$(VBOX_PATH_WIX)/light.exe -v -nologo ^' \
     
    637637# Create repack script for this step.
    638638        $(APPEND) -tn "$(VBOX_WIN_INST_REPACK_DIR)/1-compile-VirtualBox_$(lang).cmd" \
    639         'if ".%KBUILD_DEVTOOLS%" == "." echo KBUILD_DEVTOOLS is not set' \
     639        'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
    640640                $(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%,\
    641641                '$(VBOX_PATH_WIX)/candle.exe VirtualBox_$(lang).wix ^' \
     
    928928# Create repack script for this step.
    929929        $(APPEND) -nt "$(VBOX_WIN_INST_REPACK_DIR)/3-multilingual-$(PACKAGE_NAME_LANG).cmd" \
    930                 'if ".%KBUILD_DEVTOOLS%" == "." echo KBUILD_DEVTOOLS is not set' \
    931                 'if ".%KBUILD_BIN_PATH%" == "." echo KBUILD_BIN_PATH is not set' \
     930                'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
     931                'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b1)' \
    932932                'copy /y  "$(<F)" "$(@F)" || exit /b1' \
    933933                $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%,\
     
    937937                'cscript.exe /nologo $(VBOX_PATH_WISUBSTG) $(@F) || exit /b1' \
    938938                'cscript.exe /nologo $(VBOX_PATH_WISUMINFO) $(@F) $(VBOX_INS_PROD_LANG) || exit /b1' \
    939                 '( $(call VBOX_SIGN_FILE_FN,$(@F),$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,disable-dual-signing,&&) ) || exit /b1' \
     939                'call sign-sha1.cmd $(@F) || exit /b1' \
    940940                ) ) \
    941941               'copy /y "$(@F)" "$(notdir $(PACKAGE_NAME_FINAL))" || exit /b1' \
    942942                '@echo Create multilanguage MSI: $(@F)'
    943 
    944943
    945944# Copy multilingual installer to bin.
     
    977976# Create repack script for this step.
    978977        $(APPEND) -nt "$(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(@F).cmd" \
    979                 'if ".%KBUILD_DEVTOOLS%" == "." echo KBUILD_DEVTOOLS is not set' \
    980                 'if ".%KBUILD_BIN_PATH%" == "." echo KBUILD_BIN_PATH is not set' \
     978                'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
     979                'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b1)' \
    981980                $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%, \
    982981                $(if-expr defined(VBOX_WITH_MSM_INSTALL), \
    983                 ,'( $(call VBOX_SIGN_FILE_FN,../../../win.amd64/$(KBUILD_TYPE)/repack/$(notdir $(PACKAGE_NAME_MULTIARCH_COMMONCAB)),,,,,&&) ) || exit /b1') \
     982                ,'call sign-dual.cmd ../../../win.amd64/$(KBUILD_TYPE)/repack/$(notdir $(PACKAGE_NAME_MULTIARCH_COMMONCAB) || exit /b1') \
    984983                '..\bin\VBoxStubBld.exe ^' \
    985984                '  -out $(@F) ^' \
     
    990989                '  -stub ../bin/VBoxStub.exe || exit /b1' \
    991990                '$(VBOX_VCC_EDITBIN) /IntegrityCheck:NO $(@F) || exit /b1' \
    992                 '( $(call VBOX_SIGN_FILE_FN,$(@F),,,,,&&) ) || exit /b1' \
     991               'call sign-dual.cmd $(@F) || exit /b1
    993992                ) ) \
    994993                '@echo Create multiarch EXE: $(@F)'
     
    10031002RePackScripts_INSTTYPE = stage
    10041003RePackScripts_SOURCES = \
    1005         Scripts/PackDriversForSubmission.cmd
    1006 
     1004        Scripts/PackDriversForSubmission.cmd \
     1005        Scripts/UnpackBlessedDrivers.cmd \
     1006        $(RePackScripts_0_OUTDIR)/sign-dual.cmd \
     1007        $(RePackScripts_0_OUTDIR)/sign-sha1.cmd
     1008RePackScripts_CLEAN = \
     1009        $(RePackScripts_0_OUTDIR)/sign-dual.cmd \
     1010        $(RePackScripts_0_OUTDIR)/sign-sha1.cmd
     1011
     1012$$(RePackScripts_0_OUTDIR)/sign-dual.cmd: | $$(dir $$@)
     1013        $(APPEND) -nt "$@" \
     1014                'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b 1)' \
     1015                'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b 1)' \
     1016                'if ".%1" == "." (echo No .cat file specified & exit /b 1)' \
     1017                '( $(call VBOX_SIGN_FILE_FN,%1,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,,&&) ) || exit /b1' \
     1018
     1019$$(RePackScripts_0_OUTDIR)/sign-sha1.cmd: | $$(dir $$@)
     1020        $(APPEND) -nt "$@" \
     1021                'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b 1)' \
     1022                'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b 1)' \
     1023                'if ".%1" == "." (echo No .cat file specified & exit /b 1)' \
     1024                '( $(call VBOX_SIGN_FILE_FN,%1,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,disable-dual-signing,&&) ) || exit /b1' \
    10071025
    10081026include $(FILE_KBUILD_SUB_FOOTER)
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