简体   繁体   English

如何使用Linux工具创建压缩dmg文件?

[英]How to create a compressed dmg file using Linux tools?

There are a lots of question teaching how to create a DMG file from Linux. 教授如何从Linux创建DMG文件有很多问题。 But none of them is clear about how to add compression to it. 但是他们都没有清楚如何为它添加压缩。

I usually create a DMG package to redistribute to MacOS, but I would like to add compression as Apple specifies. 我通常创建一个DMG包来重新分配给MacOS,但我想按照Apple的规定添加压缩。

Did anyone have a chance to try a tool that supports compression during DMG packing? 有没有人有机会尝试在DMG包装过程中支持压缩的工具?

Similar questions without compression: 没有压缩的类似问题:

It depends. 这取决于。 Here is a good analysis of the .dmg format . 这是对.dmg格式的一个很好的分析 From that document, the compression is specified for each block chunk: 从该文档中,为每个块块指定压缩:

Table: DMG blxx types
Type    Scheme  Meaning
0x00000000  --- Zero-Fill
0x00000001  UDRW/UDRO   RAW or NULL compression (uncompressed)
0x00000002  --- Ignored/unknown
0x80000004  UDCO    Apple Data Compression (ADC)
0x80000005  UDZO    zLib data compression
0x80000006  UDBZ    bz2lib data compression
0x7ffffffe  --- No blocks - Comment: +beg and +end
0xffffffff  --- No blocks - Identifies last blxx entry

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM