Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support ULMO (LZMA) and ULFO (LZFSE) compression #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MrAlex94 opened this issue Mar 22, 2022 · 7 comments
Closed

Support ULMO (LZMA) and ULFO (LZFSE) compression #128

MrAlex94 opened this issue Mar 22, 2022 · 7 comments

Comments

@MrAlex94
Copy link
Contributor

There are some more modern compression formats supported:

  • ULFO - LZFSE/LZVN-compressed, read-only; extension I<.dmg>;
    create and use on 10.11 ("El Capitan") and later only
  • ULMO - LZMA-compressed, read-only; extension I<.dmg>;
    create and use on 10.15 ("Catalina") and later only
@aonez
Copy link
Member

aonez commented Mar 23, 2022

Will be interesting to test the differences in size.

PRs are welcome :)

@MrAlex94
Copy link
Contributor Author

Have some comparisons here! The .app has various binaries, images and text files within. Then measuring execution time of the script with different algorithms using xcrun xctrace record --template='Time Profiler' --launch -- ./create-dmg.

Size Format Reduction Execution Time
187M Uncompressed.app -- --
54M ULMO.dmg ~71% 23s
64M UDBZ.dmg ~66% 21s
70M UDZO.dmg ~62% 20s
70M ULFO.dmg ~62% 20s

Will create PR soon.

aonez added a commit that referenced this issue Apr 8, 2022
Issue #128 - Add support for ULFO and ULMO formats
@aonez
Copy link
Member

aonez commented Apr 8, 2022

Again thanks for this one, is a nice addition. Just tried it with the Keka package and there're great savings if the contents are 10.11+ or 10.15+.

@MrAlex94
Copy link
Contributor Author

No problem! :-)

@Aleksid1
Copy link

How I can enable ULMO (LZMA) and ULFO (LZFSE) compression method for my DMG?

@pzhlkj6612
Copy link
Contributor

@Aleksid1

How I can enable ULMO (LZMA) and ULFO (LZFSE) compression method for my DMG?

  • --format: specify the final image format (UDZO|UDBZ|ULFO|ULMO) (default is UDZO)

https://github.com/create-dmg/create-dmg/blob/b62ae1dd11ac0a3e17ea944384104450d800f04c/README.md#usage

@Aleksid1
Copy link

Many thanks! I've got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants