VirtualBox

Changeset 83077 in vbox


Ignore:
Timestamp:
Feb 14, 2020 4:00:59 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136125
Message:

/Config.kmk, Installer/darwin: add support for automated notarization with CCS

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r83044 r83077  
    37023702  endif
    37033703
     3704  ##
     3705  # Corp Code Notarization command line. Modifies the file because the tickets are stapled.
     3706  # @param 1  The file to be submitted for signing.
     3707  # @param 2  Identifier, mandatory.
     3708  # @param 3  The directory to put the notarized file in. Defaults to $(dir $1).
     3709 VBOX_CCS_NOTARIZE_CMD = $(VBOX_RETRY) $(VBOX_JAVA) -jar "$(VBOX_CCS_CLIENT_JAR)" \
     3710        mac_notarize -user "$(VBOX_CCS_USER)" -global_uid "$(VBOX_CCS_GLOBAL_UID)" \
     3711                -job_timeout 90 -server_timeout 75 -server "$(VBOX_CCS_SERVER)" \
     3712                -file_to_notarize "$1" -bundle_id "$2" -download_location "$(if $3,$3,$(dir $2))"
     3713
    37043714  ## Sign an application bundle, framework or kernel extension.
    37053715  # @param 1  The bundle to sign.
     
    37873797   ## @todo cannot handle $(2), the identifier.
    37883798   VBOX_SIGN_PKG_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,mac_pkg,$(1))
     3799  endif
     3800
     3801  ## Notarize a file (usually DMG, can also be PKG). Used with corp code signing only.
     3802  # @param 1  The file to notarize.
     3803  # @param 2  Identifier, mandatory.
     3804  if $(intersects darwin all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
     3805   VBOX_NOTARIZE_FILE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_NOTARIZE_CMD,$(1),$(2))
    37893806  endif
    37903807
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r83036 r83077  
    165165        @# Sign the created dmg.
    166166        $(call VBOX_SIGN_DMG_FN,$@,org.virtualbox.dmg)
     167  if $(intersects darwin all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
     168        @# Notarize the signed dmg (includes stapling).
     169        $(call VBOX_NOTARIZE_FILE_FN,$@,org.virtualbox.VirtualBox.$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD).$(VBOX_SVN_REV))
     170  endif
    167171 endif
    168172endif
Note: See TracChangeset for help on using the changeset viewer.

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