Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8406865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:13:48+00:00 2026-06-09T23:13:48+00:00

My company ships a package containing several Qt-based MacOS/X GUI applications; the package ships

  • 0

My company ships a package containing several Qt-based MacOS/X GUI applications; the package ships as a .dmg file, and “installation” consists of double-clicking the .dmg icon, then dragging one or more application icons to where he wants to keep them (e.g. to his own Applications folder).

This works fine, but the .dmg file is rather large (e.g. 40+MB) and I’d like to reduce its size if possible, in order to reduce the time it takes to download it. One thing I notice is that the applications in the package all have a significant number of large files in common (Qt libraries, graphic resource files, etc), and that currently we are including a separate copy of each of these files inside the blah.app/Contents folder of each included application — presumably this is what makes the .dmg file so large.

So my question is, is there any way to modify the .dmg so that it doesn’t need to include several copies of these files, and thus isn’t so big? Ideally I’d like to do this without requiring the user to run a special installer program, and without causing any of the applications to break if the user moves them to different (or unexpected) folders, or deletes any of them.

It seems like this would be an ideal application for hard-links — i.e. prepare the input to the .dmg file such that one application contains the actual files, and the other applications contain hard-links to those files, so that after the user unpacks the applications from the .dmg file the files remain logically independent of each other (and in particular application B won’t stop working if the user moves or deletes application A). But AFAICT MacOS/X doesn’t support hard-links [edit: to directories] for applications that aren’t named Time Machine. :^(

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T23:13:49+00:00Added an answer on June 9, 2026 at 11:13 pm

    (it feels vaguely immoral to answer my own question, but since I came to a solution I’ll do it anyway, rather than leave the question hanging open)

    The solution is to replace the duplicate files with hard-links to the first-encountered file, before running hdiutil to create the .dmg file. I did this using a simple C++ program that I wrote for the purpose (just because I’m stubborn that way), but there are also a number of freeware programs such as freedup that will do this for you. I didn’t try them, but I imagine they all work fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My company's product is module-based, meaning we ship with five base modules and users
Company A has async pooling based webservice for notifications. Company B checks for notifications.
My company ships Windows software that has Flash as a dependency. Currently, we ask
My company ships a product that among other things registers SharePoint EventReceiver on SPLists,
Our company has a share point document server where the UNC looks something like
Our company produces cross-platform software and we have Bamboo instance which is building projects
My company doesn't use Apache, so we've spun up our own socket code. In
The company i am working for is implementing Share-point with reporting servers that runs
My company provide services to other websites. I would like to be able to
My company is using SQL Server Compact to store and manage a local database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.