Changeset 94866 in vbox for trunk/src/VBox/Installer/darwin
- Timestamp:
- May 5, 2022 8:08:47 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 151266
- Location:
- trunk/src/VBox/Installer/darwin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/Makefile.kmk
r94860 r94866 41 41 else 42 42 VBOX_QT_VERSION_MAJOR = 5 43 endif 44 45 ifeq ($(KBUILD_TARGET_ARCH),arm64) 46 VBOX_DI_TARGET_ARCH = arm64 47 VBOX_DI_ARCH_LIST = arm64 48 else # Assume amd64 for now 49 VBOX_DI_TARGET_ARCH = x86-64 50 VBOX_DI_ARCH_LIST = i386,arm64 43 51 endif 44 52 … … 211 219 --output $(VBOX_PATH_PACK_TMP)/VirtualBox.dist.res/English.lproj/Welcome.rtf \ 212 220 $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Welcome.rtf 221 @# Do keyword replacement in the distribution script. 222 $(SED) \ 223 -e 's/@VBOX_TARGET_ARCH@/$(VBOX_DI_TARGET_ARCH)/g' \ 224 -e 's/@VBOX_ARCH_LIST@/$(VBOX_DI_ARCH_LIST)/g' \ 225 --output $(VBOX_PATH_PACK_TMP)/distribution.dist \ 226 $(if $(VBOX_WITH_VBOXDRV), $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution.dist, $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution-driverless.dist) 213 227 @# Copy the resources. 214 228 $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Conclusion.rtf $(VBOX_PATH_PACK_TMP)/VirtualBox.dist.res/English.lproj/Conclusion.rtf … … 240 254 @# Build the package. 241 255 $(VBOX_PRODUCTBUILD) \ 242 --distribution $( if $(VBOX_WITH_VBOXDRV), $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution.dist, $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution-driverless.dist)\256 --distribution $(VBOX_PATH_PACK_TMP)/distribution.dist \ 243 257 --package-path $(VBOX_PATH_PACK_TMP)/Packages \ 244 258 --resources $(VBOX_PATH_PACK_TMP)/VirtualBox.dist.res \ -
trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution-driverless.dist
r94855 r94866 15 15 <installer-gui-script minSpecVersion="1.0"> 16 16 <title>VirtualBox_title</title> 17 <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures=" i386,arm64"/>17 <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="@VBOX_ARCH_LIST@"/> 18 18 <installation-check script="checkPrerequisite()"></installation-check> 19 19 <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/> … … 42 42 test = system.sysctl('hw.machine'); 43 43 system.log("Hardware architecture detected: " + test); 44 result = (test == ' x86_64');44 result = (test == '@VBOX_TARGET_ARCH@'); 45 45 } catch (e) { system.log(e); result = false; } 46 46 -
trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist
r94855 r94866 15 15 <installer-gui-script minSpecVersion="1.0"> 16 16 <title>VirtualBox_title</title> 17 <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures=" i386,arm64"/>17 <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="@VBOX_ARCH_LIST@"/> 18 18 <installation-check script="checkPrerequisite()"></installation-check> 19 19 <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/> … … 42 42 test = system.sysctl('hw.machine'); 43 43 system.log("Hardware architecture detected: " + test); 44 result = (test == ' x86_64');44 result = (test == '@VBOX_TARGET_ARCH@'); 45 45 } catch (e) { system.log(e); result = false; } 46 46
Note:
See TracChangeset
for help on using the changeset viewer.