[MacOS] Create installer disk image manually to workaround broken hdiutil

Summary:
Apple broke the hdiutil on MacOS 10.13. If one passes multiple -srcfolder
arguments, it dead locks with 100 % CPU forever. Since there is no way to
tell Bitrock to use only one -srcfolder argument, we have to go the
advanced way and create the disk image file manually. This also allows
us to customize it more in the future.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Maniphest Tasks: T181

Differential Revision: https://dev.swift-project.org/D58
This commit is contained in:
Roland Winklmeier
2017-11-03 12:04:39 +01:00
parent 3876b010cb
commit 8ee73d18e9
2 changed files with 150 additions and 1 deletions

View File

@@ -6,6 +6,11 @@
<leftImage>../images/leftimage.png</leftImage>
<logoImage>../images/logo.png</logoImage>
<splashImage>../images/splashscreen.png</splashImage>
<functionDefinitionList>
<include>
<file>createbundledmg.xml</file>
</include>
</functionDefinitionList>
<requireInstallationByRootUser>0</requireInstallationByRootUser>
<componentList>
<include>
@@ -21,6 +26,18 @@
<file>vcredist.xml</file>
</include>
</componentList>
<postBuildActionList>
<createBundleDmg>
<dmgIconPosition>186, 186</dmgIconPosition>
<dmgIconSize>128</dmgIconSize>
<dmgWindowBounds>400, 100, 765, 465</dmgWindowBounds>
<ruleList>
<platformTest>
<type>osx</type>
</platformTest>
</ruleList>
</createBundleDmg>
</postBuildActionList>
<postInstallationActionList>
<createDirectory>
<path>/usr/local/var/lib/dbus</path>
@@ -108,7 +125,7 @@
<compressionAlgorithm>lzma</compressionAlgorithm>
<!-- Generate a DMG for OSX Installer -->
<createOsxBundleDmg>1</createOsxBundleDmg>
<createOsxBundleDmg>0</createOsxBundleDmg>
<!-- <allowedLanguages>en fr es it de ja nl ru zh_CN no pt_BR</allowedLanguages> -->
<enableRollback>0</enableRollback>