![Mac disk image creator eula](https://knopkazmeya.com/3.jpg)
# And add three tab characters to the beginning of every line, slavishly following the format of the extracted plistĮNGLISH_SLA="$(base64 -b 52 my-eula.txt | sed s$'/^\(.*\)$/\t\t\t\\1/')" Note, again, that you may need to use a section other than "TEXT", depending on the format of your EULA.Īnd I use this process to insert the EULA into it:Ĭode Block # base64-encode the English-language EULA, breaking at character 52 because that's how it was done in the plist extracted by udifderez My template looks like this (truncated for brevity): The EULA needs to be base64-encoded I was careful to slavishly copy the format in the extracted plist, so I wrapped mine at 52 characters and indented it with three tabs characters. You should be able to continue using your EULA file, instead of relying on updating the plist every time the EULA changes, instead keeping the plist as a template, and inserting the EULA into it as a build step. Yours is named with a ".r" extension I'm not sure what format that would be, but you should be able to find the correct section for it. Note that based on what I have read elsewhere online, the "TEXT" section may be "RTF" or something else, depending on the format of the EULA. , the resulting image worked fine: displayed the EULA and opened as expected. When I used that modified plist as input for hdiutil udifrez -xml. I figured those were specific to the image, so I removed that whole "blkx" section, including the key. I noticed that while most of the sections have basically textual data, like button and EULA text, the "blkx" section contains what look like binary data, with names like, "Protective Master Boot Record (MBR : 0)", and "disk image (Apple_HFS : 4)".
![mac disk image creator eula mac disk image creator eula](https://www.solvusoft.com/file-extensions/images/software/large/744_pgp-desktop.png)
These are the sections I found, in order: There are other keys in the structure, but they are all nested deeper in arrays and dictionaries (I am quite ignorant of plists there is probably a much better way to do this) If it helps, the XPath to the section key is /plist/dict/key. I examined the extracted xml file - which is a plist - and noticed that there are several sections to it, each section identified by a key. TL DR: remove the array identified by the key "blkx" from the extracted xml file before using it. I was faced with the same problem, and solved it, thanks in a large part to your wonderfully-detailed post. I can't find any way of attaching a SLA to a signed and notarized distribution disk image, using the current set of tools, without breaking the disk image.
Mac disk image creator eula license#
I can't attach the license after the disk image is signed or stapled, for obvious reasons. I can't attach the license before the disk image is compressed, because it's the wrong format. step, everything works (except that there's no attached license agreement). If I leave out the single hdiutil udifrez -xml. The following disk images couldn't be opened
![mac disk image creator eula mac disk image creator eula](https://thesweetsetup.com/wp-content/uploads/2017/10/ccc-hero.png)
Agree to the license, you're presented with a failure dialog: When you open the disk image the SLA appears. (note the extra, blank, argument because there's apparently another bug-or documentation failure-in udifrez, and if omitted the command fails)Įverything proceeds swimmingly, through the signing and stapling, except the resulting file is broken.
![mac disk image creator eula mac disk image creator eula](https://musicalfox.weebly.com/uploads/1/3/3/1/133184564/209776021.jpg)
The prototype disk image is duplicated, mounted, and the release app is copied onto it:Ĭode Block cp -f "$" This process starts with the application to release ( PRODUCT_CLIENT_APP) and an existing Disk Image file ( PROTO_IMAGE_SRC) that's all pretty (has a custom background, window size. Specifically, what our release scripts used to do was this (simplified version):
![mac disk image creator eula mac disk image creator eula](https://media.logitheque.com/download/500x350/utilitaires-systeme-autres/27c7e889-install-disk-creator-mac.jpg)
However, no matter what I've tried, it breaks our distribution disk images. In its place is the hdiutil udifrez which writes legacy resources to a UDIF disk image. Big Sur finally retired the (depreciated) hdiutil flatten and hdiutil unflatten commands.
![Mac disk image creator eula](https://knopkazmeya.com/3.jpg)