VirtualBox

Changeset 47362 in vbox


Ignore:
Timestamp:
Jul 24, 2013 9:34:52 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87508
Message:

OS X installer: keep previously installed extension packs on upgrade.

Location:
trunk/src/VBox/Installer/darwin
Files:
1 added
3 edited

Legend:

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

    r46735 r47362  
    848848                $(VBOX_PATH_DI_SRC)/VirtualBox/PkgBuildComponent.plist
    849849        @# Copy the resources.
     850        $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/preinstall                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/
    850851        $(INSTALL) -m 0755 $(VBOX_PATH_DI_SRC)/VirtualBox/postflight                        $(VBOX_PATH_PACK_TMP)/VirtualBox.pkg.res/
    851852        @# Build the package.
  • trunk/src/VBox/Installer/darwin/VirtualBox/PkgBuildComponent.plist

    r42742 r47362  
    99            <key>BundleHasStrictIdentifier</key>            <false/>
    1010            <key>BundleOverwriteAction</key>                <string>upgrade</string>
     11            <key>BundlePreInstallScriptPath</key>           <string>preinstall</string>
    1112            <key>BundlePostInstallScriptPath</key>          <string>postflight</string>
    1213       </dict>
  • trunk/src/VBox/Installer/darwin/VirtualBox/postflight

    r42988 r47362  
    9191fi
    9292
     93# Restore previously installed Extension Packs (if any)
     94if [ -d "${INSTALLER_TEMP}/ExtensionPacks" ]; then
     95    cp -r "${INSTALLER_TEMP}/ExtensionPacks" "${VBOX_INSTALL_PATH}"
     96    rm -rf "${INSTALLER_TEMP}/ExtensionPacks"
     97fi
     98
    9399exit 0;
    94 
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