VirtualBox

Changeset 42744 in vbox for trunk/src


Ignore:
Timestamp:
Aug 10, 2012 8:21:34 AM (12 years ago)
Author:
vboxsync
Message:

Installer rework, second part.

Location:
trunk/src/VBox/Installer/darwin
Files:
2 added
2 edited

Legend:

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

    r42742 r42744  
    7272
    7373# The location of the productbuild program.
    74 ifndef VBOX_PKGBUILD
     74ifndef VBOX_PRODUCTBUILD
    7575 VBOX_PRODUCTBUILD := productbuild
    7676endif
     
    209209                            $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/*.lproj/*) \
    210210                $(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), \
    211                         $(VBOX_BRAND_$(f)_VIRTUALBOX_WELCOME_HTML) \
     211                        $(VBOX_BRAND_$(f)_VIRTUALBOX_WELCOME_RTF) \
    212212                        $(VBOX_BRAND_$(f)_REGISTRATIONPANE_INFOPLIST_STRINGS) \
    213213                        $(VBOX_BRAND_$(f)_REGISTRATIONPANE_LOCALIZABLE_STRINGS)) \
     
    227227                $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/English.lproj
    228228        @# Do keyword replacement in the package info and description files.
     229ifdef VBOX_USE_PACKAGEMAKER
    229230        $(SED) \
    230231                -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
     
    247248                --output $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.desc/Description.plist \
    248249                $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Description.plist
     250endif # !VBOX_USE_PACKAGEMAKER
    249251        $(SED) \
    250252                -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
     
    255257                -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
    256258                -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
    257                 --output $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/English.lproj/Welcome.html \
    258                 $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Welcome.html
     259                --output $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/English.lproj/Welcome.rtf \
     260                $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Welcome.rtf
    259261        @# Copy the resources.
    260 #       $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/ReadMe.html                      $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/English.lproj/ReadMe.html
    261         $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Conclusion.html                  $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/English.lproj/Conclusion.html
     262        $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Conclusion.rtf                   $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/English.lproj/Conclusion.rtf
    262263        $(SED) \
    263264                -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
     
    276277                        -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
    277278                        -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
    278                         --output $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/$(VBOX_INSTALLER_$(f)_DARWIN_TARGET).lproj/Welcome.html \
    279                         $(VBOX_BRAND_$(f)_VIRTUALBOX_WELCOME_HTML)$(NLTAB) \
    280                 $(INSTALL) -m 0644 $(VBOX_BRAND_$(f)_VIRTUALBOX_CONCLUSION_HTML)                $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/$(VBOX_INSTALLER_$(f)_DARWIN_TARGET).lproj/Conclusion.html$(NLTAB) \
     279                        --output $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/$(VBOX_INSTALLER_$(f)_DARWIN_TARGET).lproj/Welcome.rtf \
     280                        $(VBOX_BRAND_$(f)_VIRTUALBOX_WELCOME_RTF)$(NLTAB) \
     281                $(INSTALL) -m 0644 $(VBOX_BRAND_$(f)_VIRTUALBOX_CONCLUSION_RTF)                $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res/$(VBOX_INSTALLER_$(f)_DARWIN_TARGET).lproj/Conclusion.rtf$(NLTAB) \
    281282                $(SED) \
    282283                        -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
     
    287288        )
    288289        @# Build the package.
     290ifdef VBOX_USE_PACKAGEMAKER
    289291        $(VBOX_PACKAGEMAKER) -build -v \
    290292                -p $@ \
     
    319321        )
    320322endif
     323else  # !VBOX_USE_PACKAGEMAKER
     324        $(VBOX_PRODUCTBUILD) \
     325                --distribution $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution.dist \
     326                --package-path $(VBOX_PATH_PACK_TMP)/Packages \
     327                --resources $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res \
     328                --identifier org.virtualbox.mpkg.virtualbox \
     329                --version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \
     330                $@
     331endif # !VBOX_USE_PACKAGEMAKER
    321332        @# Cleanup.
    322333        sudo rm -Rf \
     
    325336                $(VBOX_PATH_PACK_TMP)/VirtualBox.mpkg.res
    326337
    327 
     338VirtualBox.mpkg: $(VBOX_PATH_PACK_TMP)/DiskImage/VirtualBox.mpkg
    328339
    329340#
  • trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist

    r34631 r42744  
    22<!--
    33#
    4 # Copyright (C) 2008-2010 Oracle Corporation
     4# Copyright (C) 2008-2012 Oracle Corporation
    55#
    66# This file is part of VirtualBox Open Source Edition (OSE), as
     
    1515<installer-gui-script minSpecVersion="1.0">
    1616    <title>VirtualBox_title</title>
    17     <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true"/>
     17    <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="i386"/>
    1818    <installation-check script="checkPrerequisite()"></installation-check>
    19     <domains enable_anywhere="true"/>
     19    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
    2020    <script>
    2121    /* js:pkmk:start */
     
    6868    </script>
    6969    <background file="background.tif" alignment="topleft" scaling="none"/>
    70     <welcome file="Welcome.html"/>
    71     <conclusion file="Conclusion.html"/>
     70    <welcome file="Welcome.rtf" mime-type="text/rtf" uti="public.rtf"/>
     71    <!-- <conclusion file="Conclusion.rtf" mime-type="text/rtf" uti="public.rtf"/> -- the default conclusion looks better -->
    7272    <choices-outline>
    7373        <line choice="choiceVBoxKEXTs"></line>
     
    7676        <line choice="choiceVBoxCLI"></line>
    7777    </choices-outline>
    78     <choice id="choiceVBoxKEXTs" title="choiceVBoxKEXTs_title" description="choiceVBoxKEXTs_msg" start_selected="true" start_enabled="false" start_visible="true">
     78    <choice id="choiceVBoxKEXTs"   title="choiceVBoxKEXTs_title"   description="choiceVBoxKEXTs_msg"  start_selected="true" start_enabled="false" start_visible="true">
    7979        <pkg-ref id="org.virtualbox.pkg.vboxkexts"></pkg-ref>
    8080    </choice>
     
    8282        <pkg-ref id="org.virtualbox.pkg.vboxstartupitems"></pkg-ref>
    8383    </choice>
    84     <choice id="choiceVBox" title="choiceVBox_title" description="choiceVBox_msg" start_selected="true" start_enabled="false" start_visible="true">
     84    <choice id="choiceVBox"        title="choiceVBox_title"        description="choiceVBox_msg"        start_selected="true" start_enabled="false" start_visible="true">
    8585        <pkg-ref id="org.virtualbox.pkg.virtualbox"></pkg-ref>
    8686    </choice>
    87     <choice id="choiceVBoxCLI" title="choiceVBoxCLI_title" description="choiceVBoxCLI_msg" start_selected="true" start_enabled="true" start_visible="true">
     87    <choice id="choiceVBoxCLI"     title="choiceVBoxCLI_title"     description="choiceVBoxCLI_msg"    start_selected="true" start_enabled="true" start_visible="true">
    8888        <pkg-ref id="org.virtualbox.pkg.virtualboxcli"></pkg-ref>
    8989    </choice>
     
    9393    <pkg-ref id="org.virtualbox.pkg.virtualboxcli" auth="Root">file:./Contents/Packages/VirtualBoxCLI.pkg</pkg-ref>
    9494</installer-gui-script>
     95
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