Skip to content

ZIP should contain the optimized version of the app (App from ZIP cannot be opened because developer cannot be verified) #380

Open

Description

@ADTC

I noticed that hdiutil seems to optimize the GitX.app file by removing a lot of unnecessary things inside it. This reduces the app size from around 27 MB to just around 11 MB.

Also, the original version in the ZIP files will not run without an administrative bypass:
image image

Compare this to the optimized version from the DMG, which only warns that the file is from the internet:
image

I've confirmed this on the master branch commit 9d6a5fb using the artifacts here: https://github.com/gitx/gitx/actions/runs/4279414705

We should extract the optimized version from the DMG file and zip it instead of zipping the original version.

CC @jvanzyl Ref #323

PS: Watch out for translocation issues.

Activity

  1. hannesa2 commented on Oct 4, 2026

    @hannesa2
    Contributor

    Event the zip isn't able to open.
    Image
    Btw, what should be the desired content of this zip ? I at least would be fine with a dmg only

  2. ADTC commented on Oct 4, 2026

    @ADTC
    ContributorAuthor

    @hannesa2 this was more than 3 years ago. I don't really remember what I was talking about. But I think I meant that the ZIP files you're releasing would need an admin bypass to run, while the DMG ones are normal.

    Image

    Honestly though, I don't see the need to release any ZIP file at all. Just the DMG alone is sufficient since apps installed from DMG are practically portable anyway.

  3. ADTC commented on Oct 4, 2026

    @ADTC
    ContributorAuthor

    @hannesa2 I think I remember better now. It was based on the original workflow that used hdiutil to produce DMG - that would optimize the .app being placed in the DMG, but zipping the .app wouldn't have that same optimization.

    My suggestion was that after hdiutil produces the DMG file using the original .app file, extract the DMG file (it's a disk image), then zip the .app that you get from the extraction.

    Anyway your workflow has changed a lot since then, so I can't relate to it anymore. Not sure if this issue is relevant. If you find your ZIP files in latest releases aren't extracting, then the suggestion above is a possible remedy.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions