Skip to content

[Feature]: macOS installer wastes space, speed. Install with ditto. #4123

@elvey

Description

@elvey

Describe the new feature

Downloading and opening the DMG and, instead of dragging over the .app file, running this in terminal results in a much smaller (107 vs 28 MB) and presumably faster executable. (Similar savings on Intel with --arch x86_64 --arch i386):

APPNAME="DB Browser for SQLite.app" ; ASRC=/Volumes/Install\ DB4S/"$APPNAME".app/ ; ADEST=/Applications/"$APPNAME".ARM.ZIP.app/ ; sudo ditto -X --hfsCompression --arch arm64 -v $ASRC $ADEST ; du -sk $ASRC $ADEST ; echo "That is actual (1KB) blocks used.\nThat, without the compression, would be ("apparent") :" ; du -skA $ASRC $ADEST ; #From 107 to 28 MB! WOW!

Maybe add something like this near the bottom of README.md? Are speed tests part of the app infrastructure that could confirm a speed improvement?

Optional: Install a 74% slimmer, and slightly faster app: Instead of dragging over the .app file after downloading and opening the DMG, run this in Terminal:

APPNAME="DB Browser for SQLite.app" ; ASRC=/Volumes/Install\ DB4S/"$APPNAME".app/ ; ADEST=/Applications/"$APPNAME".ARM.ZIP.app/ ; sudo ditto -X --hfsCompression --arch arm64 -v $ASRC $ADEST ; du -sk $ASRC $ADEST

Happy to submit a diff if there's interest.

Does this feature exist in another product or project? Please provide a link

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions